in reply to Data Transfer to Fortran

Why not have the perl script invoke the fortran code supplying the name of the file, once it has created it?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP PCW It is as I've been saying!(Audio until 20090817)

Replies are listed 'Best First'.
Re^2: Data Transfer to Fortran
by cheech (Beadle) on Nov 26, 2009 at 19:43 UTC
    That would be great, how do I do that?

      Supply the path/name of the file on the command line to the fortran program?

      my $path = '...'; open OUT, '>', $path or die $!; ## write data to file close OUT; system qq[ fortranProg $path ]; ...

      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
        N.B. Most FORTRAN's (77 onwards) support the getarg and iarg intrinsic functions for reading command line arguments.