That should probably be:my @data = shift;
my @data = @_;
Your code only loads the @data array with one element.
In reply to Re: Returning and passing data to and from subroutines
by toolic
in thread Returning and passing data to and from subroutines
by vendion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |