shift
- Does what pop does, but on the beginning of the array
@players = qw# Mario Luigi Toad Princess #; my $favorite_player = shift @players; my $other_player = shift(@players); shift @players;
| CPU: Perl, Fall 2005 | Perl, Week 3: More Arrays, Context, Subroutines, Lexical Variables | #11 |
@players = qw# Mario Luigi Toad Princess #; my $favorite_player = shift @players; my $other_player = shift(@players); shift @players;
| Copyright © 2005 Ian Langworth |