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've never understood the appeal of map() in void context, at least since the for() statement modifier came out.

    Why is using map() and ignoring the side effects any better than using grep() for the same purpose? Just because grep() is one character longer? It seems obfuscatory, but I must be missing something.

    I might write the line as
    $msg->got_hit("RCVD_IN_$_") for grep { $blacklists->{$_} } keys %$blacklists;
    which seems to communicate the idea more clearly.