perl_mystery has asked for the wisdom of the Perl Monks concerning the following question:
Currently I am using the following script which uses ipc run3 to run a command,I noticed that it uses lot of "pm" files eating lot of run-times when the file is large,is there a better way to run a command to reduce the run-time?
use IPC::Run3; foreach my $file (@files) { my $savefile = $file; $cmd = [ (qw(p4 where), $file) ]; run3($cmd, \$stdin, \$stdout, \$stderr); if ($stderr =~ /file\(s\) not in client view/) { push @branched_paths,"$savefile"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is there a faster way to run a command than use IPC::Run3
by Anonymous Monk on Feb 21, 2011 at 05:15 UTC | |
by perl_mystery (Beadle) on Feb 21, 2011 at 06:07 UTC | |
by GrandFather (Saint) on Feb 21, 2011 at 06:14 UTC | |
by perl_mystery (Beadle) on Feb 21, 2011 at 06:21 UTC | |
by GrandFather (Saint) on Feb 21, 2011 at 06:30 UTC | |
|