in reply to Re^2: Confused by a couple of idioms
in thread Confused by a couple of idioms
perl -wle 'print( my $i ** 2 )' #Use of uninitialized value $i in exponentiation (**) at -e line 1. #0
It looks that precedence of 'my' is higher than usual 'named uops'.perl -wle 'print( my ( $i ** 2 ) )' #Can't declare exponentiation (**) in "my" at -e line 1, near ") ) #" #Execution of -e aborted due to compilation errors.
|
|---|