Slash Boxes
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.
More | Login | Reply
Loading... please wait.
  • One of my YAPC takeaways: ${\()} is usually preferable over @{[]}. One thing is that the dollar and parentheses are visually lighter than the at-sign and brackets, respectively – and much of the time the expression is just a function call, in which case you don’t even need the parentheses at all. Incidentally, creating a scalar ref and interpolating a scalar is a good deal cheaper than creating and interpolating an array, which matters in loops.

    Unfortunately in this particular case it interacts with shell quoting, which makes it somewhat unpleasant compared to the shopping cart. The best I can pull off is this:

    alias prototype="perl -le '"'print prototype qq<CORE::${\shift}>'\'

    Not nice, but sufferable.