Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Variable scope issue- effect of "my" on hash ref keys, values

by haukex (Archbishop)
on Feb 26, 2020 at 13:16 UTC ( [id://11113435]=note: print w/replies, xml ) Need Help??


in reply to Variable scope issue- effect of "my" on hash ref keys, values
in thread Behaviour of parsed XML

I am disturbed by the fact that "extra fun" does not make into the Dumper output

I'm pretty sure that's because my $x->{a}->[0] = "no you don't!"; is mostly equivalent to my $x; $x->{a}->[0] = "no you don't!";. From Private Variables via my():

All listed elements must be legal lvalues. ... The my is simply a modifier on something you might assign to.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 20:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found