in reply to Re: Re: map syntax bug-a-boo?
in thread map syntax bug-a-boo?
More examples of unary plus:
See perlop for more on this curious operator.print (3-1)*2; # oops! print (...) interpreted as function ... print +(3-1)*2; sub foo { $foo } $h{foo}; # equivalent to $h{'foo'} $h{+foo}; # but maybe you meant $h{foo()}
|
|---|