in reply to perlsub question..
I would document the observed behaviour as :> perl -e "my @y;$y[3]=undef; show(@y); x(@y);show(@y);sub show{my $co +unt=0;print $count++, qq[ : $_;\n] for @_;print qq[----\n\n]}; sub x +{ @_[3,4,5,6,8]=(3,4,5,6,939);show(@_)}" --output-- 0 : ; 1 : ; 2 : ; 3 : ; ---- 0 : ; 1 : ; 2 : ; 3 : 3; 4 : 4; 5 : 5; 6 : 6; 7 : ; 8 : 939; ---- 0 : ; 1 : ; 2 : ; 3 : 3; ----
"An undefined problem has an infinite number of solutions." - Robert A. Humphrey "If you're not part of the solution, you're part of the precipitate." - Henry J. Tillman
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perlsub question..
by Jenda (Abbot) on Jun 23, 2007 at 19:00 UTC | |
by NetWallah (Canon) on Jun 23, 2007 at 20:22 UTC | |
by shmem (Chancellor) on Jun 23, 2007 at 20:46 UTC | |
by NetWallah (Canon) on Jun 24, 2007 at 14:38 UTC | |
by ysth (Canon) on Jun 24, 2007 at 19:09 UTC | |
|