parthodas has asked for the wisdom of the Perl Monks concerning the following question:
open (my $fh, "<", "$mycrdir/file_detail.txt" ); foreach(my $value = <$fh>) { chomp($value); if($value eq "abc") { qx/"mkdir $mydir"/; func1($mycrnum,$mydir,$value,%envparams); func2($mycrnum,$mydir,$value,%envparams); } elsif($value eq "123") { qx/"mkdir $mydir"/; func1($mycrnum,$mydir,$value,%envparams); func2($mycrnum,$mydir,$value,%envparams); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: For loop not executing all the values
by Athanasius (Archbishop) on Sep 01, 2015 at 06:46 UTC | |
|
Re: For loop not executing all the values
by GrandFather (Saint) on Sep 01, 2015 at 06:54 UTC | |
by Athanasius (Archbishop) on Sep 01, 2015 at 08:37 UTC | |
by GrandFather (Saint) on Sep 02, 2015 at 00:35 UTC | |
by Anonymous Monk on Sep 02, 2015 at 00:41 UTC | |
by parthodas (Acolyte) on Sep 01, 2015 at 07:25 UTC | |
|
Re: For loop not executing all the values
by dsheroh (Monsignor) on Sep 01, 2015 at 07:02 UTC |