Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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?
[Corion]: I should tell them about the "dim+lock all monitors to show the immediate alert centered" feature of that software so they can announce the next intranet website feature even better ;)
[Eily]: This sounds like the perfect medium to send "don't let anything distract you"
[LanX]: hippo you asked about translating Asterix ?

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (14)
As of 2017-05-24 14:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?