daverave has asked for the wisdom of the Perl Monks concerning the following question:
I would like to use a string (e.g. read from a file) as a piece of code in my perl program. For example, I read a string (e.g. $str="1..100,171,398..1000") then I would like to print all the numbers in the range represented by the string.
Thanks, Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: use string as a piece of code
by moritz (Cardinal) on Jul 30, 2010 at 16:49 UTC | |
|
Re: use string as a piece of code
by SuicideJunkie (Vicar) on Jul 30, 2010 at 16:53 UTC | |
|
Re: use string as a piece of code
by FunkyMonk (Bishop) on Jul 30, 2010 at 16:45 UTC | |
by daverave (Scribe) on Jul 30, 2010 at 16:49 UTC |