On Thu, 30 Sep 2004, John W. Krahn wrote:

> Chris Devers wrote:
>  
> > shift is a function for pulling off the first element from a list.
> 
> Wrong!  If you try to use shift() with a list it will print out a nice 
> error message "Type of arg 1 to shift must be array".
> 
> perldoc -q "What is the difference between a list and an array"

Whoops! I stand corrected. Sorry about that.

In any case, the bigger point is that @_ and shift are much different 
things -- they may be used in similar places, but that doesn't make them 
into synonyms.


 
-- 
Chris Devers

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to