Search notes:

Perl function: unshift

use warnings;
use strict;

my @foo = qw(three four five six);

unshift @foo, qw(one two);

print join "\n", @foo;

__END__
one
two
three
four
five
six
Github repository about-perl, path: /functions/unshift.pl

See also

Perl: array shifting functions

Index