in reply to Re^2: How to create loop in perl dynamically
in thread How to create loop in perl dynamically
I tried this,
$index is input
foreach(1..$index)
{
}
Here if $index =2, foreach gets created 2 times, But how do i code inside this and control loop parameters.
Please suggest
foreach(1..$index)
{
}
Here if $index =2, foreach gets created 2 times, But how do i code inside this and control loop parameters.
Please suggest
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: How to create loop in perl dynamically
by johngg (Canon) on Sep 26, 2012 at 14:31 UTC | |
Re^4: How to create loop in perl dynamically
by sundialsvc4 (Abbot) on Sep 26, 2012 at 15:52 UTC |
In Section
Seekers of Perl Wisdom