Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^4: What is $x{$y}?

by invaderzard (Acolyte)
on Sep 10, 2012 at 23:59 UTC ( #992878=note: print w/ replies, xml ) Need Help??


in reply to Re^3: What is $x{$y}?
in thread What is $x{$y}?

How about $x{@y} then? How does that work?

For instance, in a foreach $x(@y){} line of code.


Comment on Re^4: What is $x{$y}?
Re^5: What is $x{$y}?
by AnomalousMonk (Abbot) on Sep 11, 2012 at 00:30 UTC
    How about $x{@y} then? How does that work ... in a foreach $x(@y){} line of code.

    There is no  $x{@y} expression in the
        foreach $x(@y){}
    statement. In that statement,  $x is aliased to successive elements of the  @y array on each execution of the loop.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2014-09-23 01:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls