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

Dont be afraid of that. It's just a precedence issue, precedence of my operator is higher than reference op, no more other mysteries. You are maybe used to open (my $fh,....) it's the same.

Replies are listed 'Best First'.
Re^3: Confused by a couple of idioms
by rsFalse (Chaplain) on Feb 22, 2019 at 09:04 UTC
    ... 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'.