You can use a slice
perl -e '@x=(qw(a b c d e f g)); push @y, @x[2..3]; print "@y\n"' c d
update
Damn!. A few moments spent to approve the node made the difference. Zaxo anticipated me by a split second! :)
In reply to Re: range operators
by cchampion
in thread range operators
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |