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.
In reply to Re: Iterate string like, for(1..5) i.e. $stirng="1..5"; for($string)
by Aristotle
in thread Iterate string like, for(1..5) i.e. $stirng="1..5"; for($string)
by gman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |