Just a note: take care with using grep { defined } that way, for it might have odd side effects:
$ perl -wE '@x = qw"a b c d e f g h"; say 0+@x; say join ":", grep { d +efined } @x[4 .. 99]; say 0+@x;' 8 e:f:g:h 100 $
In reply to Re: Getting range from N..end with list slice
by ambrus
in thread Getting range from N..end with list slice
by Marshall
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |