The way I understand it....
Shift removes the first element of the list and moves (or "shifts") every 
remaining element of the list to the left to cover the gap. Shift then 
returns the removed element.ex:)
@list = qw(1,2,3);
$fisrtval = shift(@list);
Hope this helped...Stiddy


>From: Wim De Hul <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Shift question...
>Date: Thu, 20 Dec 2001 16:48:16 +0100
>
>Hello guys ( and girls),
>
>While I was reading a script, I saw the lines:
>
>my $var = shift;
>
>I thought that shift puts a variable in an array? What does this mean?
>
>Thanks,
>
>Wim.
>
>
>--
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to