Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Alias of hash-values?

by LanX (Chancellor)
on Feb 20, 2013 at 22:36 UTC ( #1019856=note: print w/replies, xml ) Need Help??


in reply to Re^2: Alias of hash-values?
in thread Alias of hash-values?

> So anything which is an lvalue in Perl can be aliased in foreach or @_ ?

yep, seems to be the case!

$a=41; sub tst :lvalue { $a } $_++ for tst(); print tst(); # prints 42

Cheers Rolf

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1019856]
help
Chatterbox?
[LanX]: unusual that "Pimp my Bride" never made it into TV (?)
LanX sighs ... no idea stupid enough
[choroba]: "Smack My Bitch Up" did, though
[Eily]: that's the internet for you LanX

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (14)
As of 2017-03-27 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.