in reply to How to create loop in perl dynamically
adithi:
for ($i=0; $i<$input; $i++) { ... } [download]
...roboticus
When your only tool is a hammer, all problems look like your thumb.