As previously stated, you are passing a reference, not a list.
It is also possible to conditionally dereference in your sub:
if (ref($_[0])) { @array = @{$_[0]}; }
In reply to Re: Problem with passing array in a sub
by RonW
in thread Problem with passing array in a sub
by SHKVal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |