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".
In reply to Re^3: when to use lists/hash vs references?
by BrowserUk
in thread when to use lists/hash vs references?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |