File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Linux / UNIX and the fly likes How to run Perl Pgm!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "How to run Perl Pgm!!" Watch "How to run Perl Pgm!!" New topic
Author

How to run Perl Pgm!!

Raajesh Chandran
Ranch Hand

Joined: May 04, 2001
Posts: 103
Hi!!
I'm new to Perl and I want to know how to run the simple perl program in Apache-Tomcat Server in Linux environment.Pls anybody give me details.
Thankx in advance.,
Regards,
chandran


chandran..
George Brown
Ranch Hand

Joined: Sep 26, 2000
Posts: 919
do you have perl on your linux box?
if you do, and it is in your path, just type 'perl ' followed by the name of the perl script (aka perl program) and perl should run it.
Alternatively, make sure that the first line of the perl script reads:

(assuming that perl is in /usr/local/bin -- substitute the path that leads to perl on your linux box). HTH.
Prabu
Greenhorn

Joined: Jun 13, 2001
Posts: 6
Do you like to run perl as a stand alone program?
or as a CGI program?
If you want to run as a stand alone,
--above reply will just do fine.
If you want run a CGI program,
Keep your program in the cgi-bin dir of your apache location.
and call it through your browser something like http://localhost/cgi-bin/test
(where 'test' is your perl program's name ).
It is also a good idea to run perl programs as an apache module for greater performance.For that you need to install perl-apache module.
Prabu
Raajesh Chandran
Ranch Hand

Joined: May 04, 2001
Posts: 103

Thankx for U'r Reply.But I finished my project already by the same way !!!
chandran..
 
 
subject: How to run Perl Pgm!!
 
Similar Threads
session never expires in javaranch
File Search
WA #1.....word association
Running perl from java
This weeks Giveaway