411 REFERENCE · Wikibooks
Perl Programming/Keywords/unshift
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Perl unpack untie Keywords
The unshift keyword
unshift does the opposite of shift. It prepends list to the front of the array and returns the new number of elements in the array.
Syntax
unshift ARRAY, LIST
unshift EXPRESSION, LIST
Example
unshift(@ARGV, '-e') unless $ARGV[0] =~ /^-/;
See also
shift
Perl unpack untie Keywords