FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


I have a perl Script.. but i dont know how to use.





charlo_blade123
I have a perl Script.. but i dont know how to use...

Could anyone help me how to use this?
is this the one being placed in the CGI bin?
and does frihost support this?

Please guide me or give me steps by step on how to use this..

thanks!
deepak
If you'r talking about PERL as CGI then

Code:
#!/usr/local/bin/perl

You need to output it exactly like that, including the capital "C" and the lowercase everything else. Please note that there are two newline characters (\n\n) at the end of the header. CGI novices tend to forget that, but it's really important, since the header needs to be followed by a blank line.

Code:

print "Content-type: text/html\n\n";




Take a careful look at the stuff that replaced the "" characters used to quote the original "Hello, world!\n" line. That <<"EOF"; thing, and the EOF all alone on a line by itself at the end, is being used to quote a multi-line string. Basically, it's being used to indicate what the "print" command should print. This is sometimes called "here-document" quoting; you can call it whatever you want, but it's a real time-saver in CGI scripts.


Code:
print <<"EOF";
<HTML>

<HEAD>
<TITLE>Hello, world!</TITLE>
</HEAD>

<BODY>
<H1>Hello, world!</H1>
</BODY>

</HTML>
EOF
charlo_blade123
charlo_blade123
if you dont mind...
can u install it for me??? please....
deepak
Its very easy,

Just upload these 3 files to your CGI-BIN which is localted at /cgi-bin/ and then change their permission to 777 by CHMOD and then execute then like http://yourname.com/cgi-bin/eAuction.pl
Related topics
writing COM components in Perl
Perl Script - Internal Error 404 File not found
Perl Script - checking if feilds are complete
CGI FormMail Script Part II
executing a perl script
Show ip adress from perl -script need help
CGI/Perl Script to backup a website.
PERL - post data from one script to another (Without LWP)
im installing a perl script in my website and..
Running a Perl script in the background
HELP needed with basic Email perl script.
Problem with perl script
executing a perl script from within a script
Executing a Perl CGI script
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.