Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

call perl in fortan

Status
Not open for further replies.

raghu81

Technical User
Apr 9, 2008
28
DE
Dear all,

Thank you for your previous responses.

I wrote a perl script which clears comments (text following '#' in any line) and empty lines from a fortran input file.

Some of my inputs are very lengthy so I write comments followed by '#'. Before using the input as such, I use the script to clear the input file and read it with fortran.

I am looking for a solution to compile the perl script along with my fortran codes and build an exe. Any ideas how I can do this?

regards,
Raghu


 
When you call a per script, it reads the whole script in, compiles it, then executes it. If you want the compiled version, there is a utility called perlcc which will give you an executable.

Initially, you could try using system to call the perl script. If that works and you want it to run that wee bit faster, use perlcc to generate the executable and call that from system.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top