in reply to Recieving lists as arguments

Who would i be if i did not put a few more comments on this ? Well, i think lhoward was right about usng array assigment instead of shift. But, something that appears to have been over looked is the calling context.
In this section, the folloing would happen based on diffrent calling conventions :

## Implicit @_ $data = shift; ## Explicit @_ $data = shift(@_); ## Explicit void context $null = shift();
So, if you in fact only want one, use shift; or shift(@_);
Calm begets calm

Replies are listed 'Best First'.
Re: Re: Recieving lists as arguments
by japhy (Canon) on Jul 12, 2001 at 22:15 UTC