File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to run Perl Pgm!!

 
Raajesh Chandran
Ranch Hand
Posts: 103
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
George Brown
Ranch Hand
Posts: 919
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 103
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thankx for U'r Reply.But I finished my project already by the same way !!!
chandran..
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic