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

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