testing testing... perl question
Adrian Howard
adrianh at quietstars.com
Mon Aug 13 12:11:46 BST 2007
On 13 Aug 2007, at 11:31, Aidan Samuel wrote:
[snip]
> When using map and grep I tend to leave off the curly braces and just
> use a comma, but if I try this with sort, I get these odd results.
[snip]
Because sort doesn't let you leave the curly braces off.
sort SUBNAME LIST
sort BLOCK LIST
sort LIST
are the only options. So it's really
sort($a <=> $b, @a);
:-)
Adrian
More information about the london.pm
mailing list