Hi,
I decided to learn PERL recently and the first thing I would like to do is to execute a couple of FORTRAN programs in PERL, unfortunately the PERL book I bought does not provide a quick insight into how to do this.
What I want to do!
execute prog_1 ...which creates a file fort.1 which I want
to use in prog_2 and which I call as argument with Prog_2
hence I wrote
$command1="prog_1";
$command2="prog_2 fort.1";
system($command1);
system($command2);
However the result is that prog_2 does not recognize fort.1
I decided to learn PERL recently and the first thing I would like to do is to execute a couple of FORTRAN programs in PERL, unfortunately the PERL book I bought does not provide a quick insight into how to do this.
What I want to do!
execute prog_1 ...which creates a file fort.1 which I want
to use in prog_2 and which I call as argument with Prog_2
hence I wrote
$command1="prog_1";
$command2="prog_2 fort.1";
system($command1);
system($command2);
However the result is that prog_2 does not recognize fort.1