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
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Forget the shopping cart (usually) (Score:1)
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:
Not nice, but sufferable.
Reply to This