Полезная информация

Programming Perl

Programming PerlSearch this book
Previous: 3.2.182 unpackChapter 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 unpackProgramming PerlNext: 3.2.184 untie
3.2.182 unpackBook Index3.2.184 untie