in reply to Array Splicing: Need Help!
prints:$ perl -e ' my @colors = qw(red blue orange purple pink white); @colors = @colors[3..$#colors]; print join (" ", @colors),"\n";'
Update: Check perldata for more detail explanation about slice.purple pink white
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Array Splicing: Need Help!
by Anonymous Monk on May 26, 2005 at 15:05 UTC | |
by chromatic (Archbishop) on May 26, 2005 at 21:16 UTC |