Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

blazar (7356)

blazar
  (email not shown publicly)
http://blazar.perlmonk.org/
Yahoo! ID: bik.mido (Add User, Send Message)
Jabber: blazar@jabber.org

Journal of blazar (7356)

Monday November 13, 2006
06:01 PM

Discovered a new function...

[ #31597 ]

Well, actually I completely ignore how new or old it may be, but I ignored its whole existence altogether, so... Whatever, it's study(). Is "to discover" the right verb for such a thing? Who knows... It was brought to my attention by a clpmisc post (news:1163429694.397139@proxy.dienste.wien.at) but it was a perldoc perlfunc away. I didn't know it simply because I can't remember having seen it mentioned anywhere in discussion or example before today. And discussions and examples are very important means for me to learn...

BTW, I selected "User Journal" as a "Journal Topic", because I can't see any that is just "Perl": would there have been a more appropriate one? Is the topic important anyway, or can one safely just stick with "User Journal"?

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I can’t remember having seen it mentioned anywhere in discussion or example before today.

    That’s because it’s only rarely useful and very nearly never a clear win. You may as well never think about it, and it won’t make a difference.

    If you want to see another relic burried in perlfunc [perl.org] that’s even less useful, check out reset [perl.org].

    Is the topic important anyway, or can one safely just stick with “User Journal”?

    I’m not sure selecting a topic even has any ef

    • If you want to see another relic burried in perlfunc that’s even less useful, check out reset.

      Indeed I can't remember having used it, but I had seen it before. Actually I have a hard time judging whether it's more or less useful than study(), although I'd rate it close to it. AIUI there's a difference though: the former has a semantic (side-)effect; the latter is only supposed to be (possibly) useful for speed optimization, but won't change what one's script will do in any way.

      I’m not sure s

      --
      -- # This prints: Just another Perl hacker, seek DATA,15,0 and print q... ; __END__
      • the former has a semantic (side-)effect

        That’s sort of tautologic, of course; its entire point is the side effect.

        the latter is only supposed to be (possibly) useful for speed optimization

        I know. However, it takes time itself and rarely usefully speeds up a match, so in the general case, it will cause a speed hit (albeit usually a small one). The circumstances in which it can provide a measurable speed-up are so specific that in practice, the function is useless. And that’s why it doesn