Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Alias of hash-values?

by LanX (Canon)
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


Comment on Re^3: Alias of hash-values?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2014-07-30 10:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (230 votes), past polls