start page | rating of books | rating of authors | reviews | copyrights

Programming Perl

Programming PerlSearch this book
Previous: 3.2.182 unpack Chapter 3
Functions
Next: 3.2.184 untie
 

3.2.183 unshift

unshift 

ARRAY

, 

LIST

This function does the opposite of a shift . (Or the opposite of a push , depending on how you look at it.) It prepends LIST to the front of the array, and returns the new number of elements in the array:

unshift @ARGV, '-e', $cmd unless $ARGV[0] =~ /^-/;


Previous: 3.2.182 unpack Programming Perl Next: 3.2.184 untie
3.2.182 unpack Book Index 3.2.184 untie