Wim De Hul <[EMAIL PROTECTED]> writes:

> my $var = shift;
> 
> I thought that shift puts a variable in an array? What does this mean?

Did you check the documentation on "shift" *before* posting
the question?


================

>From "Programming Perl":

3.2.143 shift

shift ARRAY
shift

This function shifts the first value of the array off and
returns it, shortening the array by 1 and moving everything
down. (Or up, or left, depending on how you visualize the
array list.) If there are no elements in the array, the
function returns the undefined value. If ARRAY is omitted,
the function shifts @ARGV (in the main program), or @_ (in
subroutines). See also unshift, push, pop, and splice. The
shift and unshift functions do the same thing to the left
end of an array that pop and push do to the right end.


-- 
Michael R. Wolf
    All mammals learn by playing!
       [EMAIL PROTECTED]


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

Reply via email to