in reply to Re: Getting range from N..end with list slice
in thread Getting range from N..end with list slice
Something like this would scale better and run fast, but of course it is two statements and doesn't use list slice.
my $x = "a b c d e f g h"; my @set = (split /\s+/, $x); splice(@set,0,3); print "@set\n"; #prints d e f g h
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Getting range from N..end with list slice
by JavaFan (Canon) on Nov 27, 2010 at 13:29 UTC |