in reply to Re^2: when to use lists/hash vs references?
in thread when to use lists/hash vs references?
Of course. So don't do that.
Declare an array, and pass a reference.
I also prefer to use
sub arrayManip { our @a; local *a = shift; # do stuff with @a } my @array = (...); arrayManip( \@array );
But you doubtless consider that too "complex".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: when to use lists/hash vs references?
by chromatic (Archbishop) on Jul 16, 2010 at 01:20 UTC | |
by BrowserUk (Patriarch) on Jul 16, 2010 at 01:49 UTC | |
by chromatic (Archbishop) on Jul 16, 2010 at 02:33 UTC | |
by BrowserUk (Patriarch) on Jul 16, 2010 at 11:12 UTC |