in reply to Re^6: Referencing in Function not working correctly.
in thread Referencing in Function not working correctly.
When you have an aggregate (array or hash) in a list that variable will be assigned all the values. So:
my ( @x, @y, @z ) = ("z", "y", "z");
Is exactly the same as:
my @x = ("z", "y", "z"); my ( @y, @z );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Referencing in Function not working correctly.
by mr_p (Scribe) on Apr 02, 2010 at 20:11 UTC | |
by jwkrahn (Abbot) on Apr 02, 2010 at 20:15 UTC | |
by mr_p (Scribe) on Apr 02, 2010 at 20:23 UTC | |
by chromatic (Archbishop) on Apr 02, 2010 at 21:50 UTC | |
by mr_p (Scribe) on Apr 02, 2010 at 22:12 UTC |