@_ is shifts implied argument (since you didn't supply an argument to shift explicitly). Shift removes and returns the first element of an array. To get the code to work the way you want it to, replace with:@pictures = shift(); # broken
@pictures = @_;
In reply to Re: Recieving lists as arguments
by lhoward
in thread Recieving lists as arguments
by Amoe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |