in reply to for vs. reverse
but I can't figure out why this doesn't work. Doesn't shift work on @_ by default?@_ = (@{$_ = [qw{emacs vi}]}, reverse @$_); print "Why do we have to hide from the police, daddy ? Because they us +e ", shift @_, " and we use ", shift @_, ", son.\n" while(@_);
@_ = (@{$_ = [qw{emacs vi}]}, reverse @$_); print "Why do we have to hide from the police, daddy ? Because they us +e ", shift, " and we use ", shift, ", son.\n" while(@_);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: for vs. reverse
by chipmunk (Parson) on Mar 28, 2001 at 09:33 UTC |