in reply to whats wrong with this code?
The interesting thing is that this to avoid syntax always stops after the first middle of the array:
perl -E "@ar=(1..$ARGV[0]);foreach(@ar){shift @ar;}print qq(@ar\n)" 4 3 4 perl -E "@ar=(1..$ARGV[0]);foreach(@ar){shift @ar;}print qq(@ar\n)" 10 6 7 8 9 10 perl -E "@ar=(1..$ARGV[0]);foreach(@ar){shift @ar;}print qq(@ar\n)" 20 11 12 13 14 15 16 17 18 19 20
L*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: whats wrong with this code?
by purnak (Acolyte) on Jan 18, 2017 at 11:10 UTC | |
by Discipulus (Canon) on Jan 18, 2017 at 11:40 UTC |