That really depends on how the Perl is talking to the FORTRAN. If Perl is calling the FORTRAN program using
system then the file name could be passed on the command-line. Alternatively a pipe could be used (see
open). However if the FORTRAN is a library in a DLL or .so file then you could call the FORTRAN subroutines from XS, passing the data or file name.