On 8/3/06, Joshua McAdams <[EMAIL PROTECTED]> wrote:
> shift operates on @_ by default, so when you do a:
>
>   my $scalar = shift;
>
> you are really doing a:
>
>   my $scalar = shift @_;

/me smacks forehead

> which shifts the first argument passed to a subroutine off of the
> array of arguments and into the scalar variable.

haha I knew that really! =\
_______________________________________________
kc mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/kc

Reply via email to