@a=qw(one two three four five six); $r=\@a; print @{$r}[0..2]; # Gives onetwothree
In reply to Re: Can you take a slice of an array reference?
by clintp
in thread Can you take a slice of an array reference?
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |