it will run only if you have webserver install with perl as your CGI... otherwise, no chance to run that code. I assume that this is in linux/unix system #!/usr/local/bin/perl however you can set this via system environment path in case you are using Windows...
oo naajud webserver, nag assume rapud ko kabalo sya boss kai naa man sya code lol
OT nasad ta ^^
- Kani kay sayon ra ang maintenance ug mga adhoc reports. Kung dako ang volume sa data, puede ra man sad gihapon ni imong front-end, nya SQL ang back-end. Later on kung mag web application ka(.NET/Java), ma-access ra nimo gihapon ang database. Ang mga reports puede na nimo ma dump sa excel/word.
- Sa User side, makahimo sad sila ug queries/reports nga wla or less programming involve.
Okey man sad ang .NET(C#) e-integrate nimo sa MS Excel or OpenOffice Excel
LOL.... read the code and understand bro...It uses webserver...
yes, perl is quite similar to python that runs on top of interpreter... that's why I told him to set his system environment if he is running Windows platform. #!/usr/local/bin/perl is ignored under MS.
I tested that script on my machine, and it seems it reads some cached being pass by a webserver,
I went back and read the comment:my $o;
read(STDIN,$o,$ENV{'CONTENT_LENGTH'});
my %o;
for (split(/&/,$o)) {
$_ =~ s/\+/ /g;
my($key,$val) = split(/=/,$_,2);
for ($key,$val) {
$_ =~ s/%([0-9a-fA-F][0-9a-fA-F])/chr(hex($1))/ge;
}
$o{$key} = $val;
}
# Install (a modified version of) this program in your webserver's cgi-bin
die("Expecting a POST, bailing");
Does it proved?
how would you run that without WEBSERVER? @_@
*** this is a copy and paste code I guess... the way he writes the recursion seems to be at advance level.
I wish you know more about perl :PPerl is often used for sysadmin or utility scripts with or without a web server.
Similar Threads |
|