NameSilo

First line of code to Perl?

Spaceship Spaceship
Watch
Impact
0
"I need to know how to direct my first line of code for the cgi file to perl. Do I need to create a page first and add some line of code? I am completely lost on this one"

I'm trying to help a friend out here, as I've got no idea how to do this either.

Thanks
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
Ughmm , Not quite sure what he means.

Perl and CGI are more or less the same Language (As far as the scripting goes).

If he wants to use a Script.cgi -or- Script.pl as the opposite file type - "Usually" you would only have to change the file extension to the other by renaming the file.




If you mean how to tell it where to look :

Code:
#!/usr/bin/perl -s

Is something typical - He or his host would have to say for sure ....
 
0
•••
Mark said:
Ughmm , Not quite sure what he means.

Perl and CGI are more or less the same Language (As far as the scripting goes).

If he wants to use a Script.cgi -or- Script.pl as the opposite file type - "Usually" you would only have to change the file extension to the other by renaming the file.




If you mean how to tell it where to look :

Code:
#!/usr/bin/perl -s

Is something typical - He or his host would have to say for sure ....
#!/usr/bin/perl is known as the perl shebang. It is put at the top of a perl script, and it tells the web server (like Apache) where to find the perl executable. This way it knows how to run the code following the shebang.

(:

http://en.wikipedia.org/wiki/Perl
 
0
•••
Ok, I think I know what you guys mean, but it would be better for you to talk to this guy directly. Heres his email [email protected] He also has a yahoo messenger account (freedomfightdotcom). Also, if any of you guys want to help with this little problem, we are going to have an online chat tonight @ 11pm eastern @ www.freedom-fight.net/chat

Thanks a bunch

He just sent this to me via messenger. He wants to know if anyone of you can make sense of it:

## This is a simple and very easy to install script. ##
## ##
## Make sure the first line of the program points to the ##
## path to perl on your server. ##
## ##
## Make a directory named "linkcollector" or anything in ##
## the cgi-bin directory of your web host. ##
## ##
## Just upload the "config.cgi" & "setup.cgi" into the ##
## "cgi-bin" directory.
Set permission to the setup.cgi to 0755. ##
## ##
## Upload the "lc.zip" into your HOME DIRECTORY. ##
## ##
## Run the setup.cgi script. ##
## http://www.yourdomain.name/cgi-bin/linkcollector/setup.cgi ##
## ##
## Thats all.
 
0
•••
He could just sign-up here...


## This is a simple and very easy to install script. ##
## ##
## Make sure the first line of the program points to the ##
## path to perl on your server. ##
## ##
## Make a directory named "linkcollector" or anything in ##
## the cgi-bin directory of your web host. ##
## ##
## Just upload the "config.cgi" & "setup.cgi" into the ##
## "cgi-bin" directory.
Set permission to the setup.cgi to 0755. ##
## ##
## Upload the "lc.zip" into your HOME DIRECTORY. ##
## ##
## Run the setup.cgi script. ##
## http://www.yourdomain.name/cgi-bin/...ector/setup.cgi ##
## ##
## Thats all.
#!/usr/bin/perl

needs to go at the very top of the script.
 
0
•••

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back