On Wed, Dec 11, 2002 at 06:50:12PM -0800, Michael Lazzaro wrote: : : On Wednesday, December 11, 2002, at 06:41 PM, Michael Lazzaro wrote: : > print $i; # ILLEGAL; use $STDOUT.print($i) or $i.print (?) : > reverse @a; # ILLEGAL; use @a.reverse; : > map {...} @a; # ILLEGAL; use @a.map({...}); : > sort {...} @a; # : > keys %h; # ...etc... : : (And yes, I'm aware that (1 <= N <= 5) of those are going away already.)
Actually, N might be 0. The : may not always be required on single arg methods in indirect object syntax. That is, if there's no sub matching keys %h it'll fall back to looking for keys %h: I have horrors of seeing programs full of things like close $FH:; Larry