Does it really need to be a string?
What about a functional solution to store intervals?
DB<83> $loop = sub {2,4..5} DB<84> say for &$loop 2 4 5 DB<85>
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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |