[Pdx-pm] Not what I expected
paull at peak.org
paull at peak.org
Wed Nov 1 11:20:22 PST 2006
Ok, the parser seeing it as "sort block list", explains the observed
behavior of not sorting and not uniquifying. Now explain why it is allowed
to arrive at the "sort block list" conclusion. The parenthesization of
uniq's arguments should preclude that interpretation.
My read of perlop says functions with parenthesized arguments are at the
top of the precedence table. sort should not be able to take this
sort uniq( @list )
and turn it into
sort \&uniq @list
-Paul
More information about the Pdx-pm-list
mailing list