push
- push adds one or more elements to the end of an array
push @fruit, 'kiwi'; @favorites = qw/ uglyfruit kumquat /; push @fruit, @favorites;
| CPU: Perl, Fall 2005 | Perl, Week 3: More Arrays, Context, Subroutines, Lexical Variables | #9 |
push @fruit, 'kiwi'; @favorites = qw/ uglyfruit kumquat /; push @fruit, @favorites;
| Copyright © 2005 Ian Langworth |