473,698 Members | 2,923 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Perl Script

53 New Member
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
7 1684
numberwhun
3,509 Recognized Expert Moderator Specialist
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
4,059 Recognized Expert Specialist
Install perl, either strawberryperl or activeperl (www.activestat e.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
971 Recognized Expert Contributor
I like using XAMPP for development. Gives me most everything I need to develop applications for the web.

--Kevin
Jun 25 '08 #4
pavanip
53 New Member
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
3,509 Recognized Expert Moderator Specialist
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
4,059 Recognized Expert Specialist
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
176 Recognized Expert New Member
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

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

Similar topics

1
19349
by: sam | last post by:
I have a function writen in Perl that takes a name-value list (array) as argument and returns a name-value list (array). My question is: How to call this function from PHP and get the returned name-value list in PHP variable? Thanks.
3
6547
by: dpackwood | last post by:
Hello, I have two different scripts that do pretty much the same thing. The main perl script is on Windows. It runs and in the middle of it, it then calls out another perl script that then should run on a Unix box I have. Both scripts run ok, except for the part when Windows try's to call out the Unix script. I have it set up where the Unix is mapped through a drive letter and can drop stuff into the Unix box. It is going through another...
1
4684
by: Julia Bell | last post by:
I would like to run the same script on two different platforms. The directory in which the script(s) will be stored is common to the two platforms. (I see the same directory contents regardless of which platform I use to access the directory.) Platform 1: perl is installed in /tps/bin/perl. CPAN modules are available Perl is also installed in /usr/bin/perl Platform 1, but the modules are not accessible with this version. Platform...
9
10195
by: Martin Foster | last post by:
Hi. I would like to be able to mimic the unix tool 'uniq' within a Perl script. I have a file with entries that look like this 4 10 21 37 58 83 111 145 184 226 4 12 24 42 64 92 124 162 204 252 4 11 23 44 67 95 134 168 215 271 ..
3
4969
by: PzYon | last post by:
Hey 2gether! I'm trying to execute a PERL script on the web server when the user presses a button in an ASP.NET Web Application using Visual Basic. The most obvious solution for me seemed to be to use the 'Shell()'-command . This didn't work: Either I get an "File not found" error, or I get no error at all, but the PERL script isn't executed anyway. The strange thing is that I managed to execute a .bat file for example. Why the hell...
9
20894
by: 8anos | last post by:
Hello, I am new at the community and newbie at programming :) As you may know rapidshare provides a perl script for linux, to upload files at their servers. You can find the original scripts at rapidshare news : http://images.rapidshare.com/software/rsapi.pl If you test it you will see that you can upload one file at time. I try to modify it in that way that script can read a text file with the names of the files i want to...
21
34413
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most obvious of which is the sharing of files. For example, you upload images to a server to share them with other people over the Internet. Perl comes ready equipped for uploading files via the CGI.pm module, which has long been a core module and allows users...
10
6971
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration of section c. Not sure where went wrong as the web page displayed internal server error. Also, what is the error 543? and error 2114. Where to find the list of errors in websites as it is not the standard apache error. I could not find...
1
47462
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click on a link and after a moment or two a file download dialog box pops-up in your web browser and prompts you for some instructions, such as “open” or “save“. I’m going to show you how to do that using a perl script. What You Need Any recent...
3
3904
by: happyse27 | last post by:
Hi All, I am creating the perl script using html form(with embedded javascript inside). When using this html form with javascript alone, it works where the form validation will pop up javascript windows to say the field is not keyed into properly. However, when i convert this html(with javascript inside) into perl script, the perl script did not validate when i keyed incorrect data in the form and it straight away executed perl script...
0
8683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8610
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9031
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8902
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7740
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4623
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2339
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.