in reply to Iterate string like, for(1..5) i.e. $stirng="1..5"; for($string)
Ok, now that your question was answered with the use of eval, can you tell us why you want to do that? It is very likely that what you want to do is not the best way to go about it (for many, many reasons), and if you tell us a little more, someone might suggest a better approach for solving your specific task.
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Iterate string like, for(1..5) i.e. $stirng="1..5"; for($string)
by gman (Friar) on Oct 10, 2005 at 02:19 UTC | |
by Aristotle (Chancellor) on Oct 10, 2005 at 02:30 UTC | |
by gman (Friar) on Oct 10, 2005 at 02:44 UTC | |
by GrandFather (Saint) on Oct 10, 2005 at 03:08 UTC |