DB<53> say for eval "2,4..9" 2 4 5 6 7 8 9
NB: this might lead to problems with large intervals though, because foreach can't tell when to iterate lazily. But good enough if you don't intend to scale large.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re: loop iterator in a string
by LanX
in thread loop iterator in a string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |