Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Confused by a couple of idioms

by rsFalse (Hermit)
on Feb 22, 2019 at 09:04 UTC ( #1230359=note: print w/replies, xml ) Need Help??


in reply to Re^2: Confused by a couple of idioms
in thread Confused by a couple of idioms

... And a handy precedence list can be found in perlcheat.

I have a question about precedence of my. Isn't it a 'named uop', as I thought, or is it absent from precedent list? E.g.
perl -wle 'print( my $i ** 2 )' #Use of uninitialized value $i in exponentiation (**) at -e line 1. #0
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.
It looks that precedence of 'my' is higher than usual 'named uops'.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1230359]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2020-01-21 06:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?