Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: external program variables

by Jim (Curate)
on Jun 02, 2013 at 21:32 UTC ( #1036623=note: print w/replies, xml ) Need Help??


in reply to external program variables

So just use variables.

# Iterate millions of input/output file names... foreach (...) { # Execute external command on pairs of input/output file names... system("my_program.exe my_parameter_file.par -option1 -option2 \ $input_file_name $output_file_name"); }

Where is the list of millions of input and output file names coming from?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1036623]
help
Chatterbox?
[1nickt]: For multiple dirs use iterator(): $it = path("/foo")-> iterator; while ( my $path = $it->() ) {...}
[1nickt]: (also skips . and .. automatically, and follows subdirs if you set <c\>recurse => 1</c>
[1nickt]: $it = path("/foo")-> iterator(recurse => 1 );

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (13)
As of 2017-03-28 18:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (340 votes). Check out past polls.