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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to compile perl in linux

Status
Not open for further replies.

ArmenD

Programmer
Feb 3, 2005
101
US
hi,
i have fc3, i downloaded a script called f2f.pl and i want to make use of it.
i believe i should compile it, but i am not sure how on my linux box. any help is appreciated.
 
Don't know what fc3 is, some compiler?

Perl scripts are usually interpreted, not compiled. If you have perl installed, you can make the script executable on Linux with chmod +x scriptname.

First make sure the "shebang" line at the top of the script has the correct path to your Perl interpreter. You should be able to find this out by typing which perl at a command prompt. (I believe which is correct for Linux, but it's what or where on some other *nixes, and it's a while since I've worked on *nix.)

 
great thanks,
fc3 means fedora core 3.

 
Unlike C or C++, you don't precompile Perl scripts.

If f2f.pl is executable (which mikevh gave you instructions to do), you can run the script by just typing `./f2f.pl'. If not, `perl f2f.pl' should run it for you.
 
ish, I hope this isn't illegal
and you know I mean that ....

hahhahah

cigless ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top