Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Perlplexation - foreach shoulda Known

by tinita (Parson)
on Apr 14, 2012 at 09:46 UTC ( #965054=note: print w/replies, xml ) Need Help??

in reply to Perlplexation - foreach shoulda Known

I guess I just assumed it didn't because when you declare the variable in a foreach loop, you don't think of it as a reference (because it really isn't one, but it sorta acts like one in that it represents the actual element in the list.)
It is called an alias.
  • Comment on Re: Perlplexation - foreach shoulda Known

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2016-10-24 21:34 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (310 votes). Check out past polls.