Sun751 has asked for the wisdom of the Perl Monks concerning the following question:
Any suggestion? Please Cheersfor (my $element = 0; $element<$total_element; $element++) { my ($run_cmd, $chdir_cmd) = split(';',$run[$element],2); ch_dir($chdir_cmd,$patch,'0'); if ($run_cmd =~ /check.pl/) { system($run_cmd) if ($? != 2) { print "Command Failed: While Executing $run_cmd$!\n"; $err = 1; } } else { system($run_cmd); if ($? != 0) { print "Command Failed: While Executing $run_cmd$!\n"; $err = 1; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: looking for suggestion!!!
by Corion (Patriarch) on Jul 24, 2009 at 08:15 UTC | |
|
Re: looking for suggestion!!!
by GrandFather (Saint) on Jul 24, 2009 at 08:23 UTC | |
by Sun751 (Beadle) on Jul 24, 2009 at 09:29 UTC | |
by GrandFather (Saint) on Jul 24, 2009 at 09:35 UTC | |
|
Re: looking for suggestion!!!
by ikegami (Patriarch) on Jul 24, 2009 at 08:27 UTC | |
|
Re: looking for suggestion!!!
by marto (Cardinal) on Jul 24, 2009 at 08:41 UTC | |
|
Re: looking for suggestion!!!
by cdarke (Prior) on Jul 24, 2009 at 09:42 UTC | |
by GrandFather (Saint) on Jul 24, 2009 at 09:45 UTC |