467,201 Members | 1,045 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,201 developers. It's quick & easy.

Perl Script

Hi,

I am newer to Perl script.I don't know about perl. I have to do one project in perl.
That is already developed.But I have to do some modifications to that.Please tell me what are the components I have to install in our system to run the perl script.My operating system is Windows XP. And how to compile and run the script.Here my major problem is script is not opening.Is there any other alternative to open the script.That file is in .cgi extension.And can we convert that script to html to view the results.Please give me some suggestions.

Thanks
Pavani
Jun 25 '08 #1
  • viewed: 1436
Share:
7 Replies
numberwhun
Expert Mod 2GB
If I were you, I would start reading the basic books on perl as you have a lot to learn and pick up.

First, you want to go to some place like strawberryperl.com, get the latest distribution and install it.

From there though, you need to learn the basics before you go tackling CGI. A CGI program outputs HTML, so there would be no reason to convert it. Also, you don't compile Perl programs, per se, they are interpreted.

Why not send me a private message (PM) with your email address and I will send you a couple of documents that will really get you a good base in Perl. Do not post your email here as it will be deleted. Emails are not allowed in the forums, thus why I asked you to PM me.

Regards,

Jeff
Jun 25 '08 #2
KevinADC
Expert 2GB
Install perl, either strawberryperl or activeperl (www.activestate.com) and install an http server, I recommend apache (www.apache.org). google for apache tutorials for how to setup apache to run CGI scripts, there are a number of step by step tutorials out there that will walk you through the setup process.
Jun 25 '08 #3
eWish
Expert 512MB
I like using XAMPP for development. Gives me most everything I need to develop applications for the web.

--Kevin
Jun 25 '08 #4
If I were you, I would start reading the basic books on perl as you have a lot to learn and pick up.

First, you want to go to some place like strawberryperl.com, get the latest distribution and install it.

From there though, you need to learn the basics before you go tackling CGI. A CGI program outputs HTML, so there would be no reason to convert it. Also, you don't compile Perl programs, per se, they are interpreted.

Why not send me a private message (PM) with your email address and I will send you a couple of documents that will really get you a good base in Perl. Do not post your email here as it will be deleted. Emails are not allowed in the forums, thus why I asked you to PM me.

Regards,

Jeff
Thanks for your quick response.I will follow your suggestions .
Here that site is already developed in Perl.That is uploaded in FTP.My problem is I am unable download some files from FTP.They are not opening properly and some files are opening.Please can you tell me What is the reason behind that?
Is there any File permissions to open files.Please give me some suggestions how to resolve this issue.Its very urgent.I installed Perl Express Editor to open cgi files.Is there a need to install any other components in our system to run these files?
Jun 26 '08 #5
numberwhun
Expert Mod 2GB
Thanks for your quick response.I will follow your suggestions .
Here that site is already developed in Perl.That is uploaded in FTP.My problem is I am unable download some files from FTP.They are not opening properly and some files are opening.Please can you tell me What is the reason behind that?
Is there any File permissions to open files.Please give me some suggestions how to resolve this issue.Its very urgent.I installed Perl Express Editor to open cgi files.Is there a need to install any other components in our system to run these files?
First, you should be able to open any Perl or CGI script with any text editor. No need for Perl Express unless you really want it. As for any other components, you would have to examine the scripts to see what modules are needed to be installed locally.

Regards,

Jeff
Jun 26 '08 #6
KevinADC
Expert 2GB
perl has nothing to do with why some files can't be opened. It could be a permission problem or other problem, like maybe the file is in use by another program and can't accessed (generally a windows problem).
Jun 26 '08 #7
Kelicula
Expert 100+
perl has nothing to do with why some files can't be opened. It could be a permission problem or other problem, like maybe the file is in use by another program and can't accessed (generally a windows problem).
Yes usually if the file you download is garbled or "messed up" it is because it was created on another operating system that is incompatible.

The file should work on the server though.
Try downloading it in ASCII, and then BINARY. If it still doesn't look right, you may just NOT be able to "read" that file with your system.
Jun 28 '08 #8

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by sam | last post: by
1 post views Thread by Julia Bell | last post: by
9 posts views Thread by Martin Foster | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.