Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Confused by a couple of idioms

by rsFalse (Chaplain)
on Feb 22, 2019 at 09:04 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1230359]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2024-04-19 09:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found