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.
  • As a result of this post, I updated the tutorial I wrote on getting matching items from arrays

    http://perlmonks.org/?node_id=371938 [perlmonks.org]
  • Wouldn't it be a more realistic test if you used the return value from first/grep/~~? Is grep one of the builtins that's optimized for void context? I can never remember...
    • Good point. I've updated the benchmark to work in scalar context. Results are similar. grep isn't optimized in void context because there's no valid use for it, the whole point is the return value. Then again the same could be said of smart match. I guess we need a "smart match in void context" warning.