Hello I Was wondering if anyone would be kind enough to write me some perl tutorials for a new website i am currently Developing. They Cannot Be Plagurised.
Any Help Would Be Dearly Appreciated. :):lol:
Thanks. Jack
Perl/CGI Tutorials
Started by jthom263, May 05 2010 12:19 AM
3 replies to this topic
#1
Posted 05 May 2010 - 12:19 AM
:)
|
|
|
#2
Posted 06 May 2010 - 05:11 PM
Well what kind of tutorials you looking for?
#3
Posted 07 May 2010 - 03:39 AM
Basically Anything That Might Be Helpful and interesting and anything from beginner to advanced. :) Thanks For The Reply :lol:
:)
#4
Posted 21 August 2010 - 02:55 PM
Here is an example
#!/usr/bin/env perl
use strict;
use warnings;
use CGI qw(:cgi); #import only what we need no html generation needed
my $q = CGI->new; #create a new CGI object
my $name = $q->param('name') || "No name suppiled"; #looks for env.pl?name=
print $q->header; #print contenttype header Content-Type: text/html
print <<HTML;
<!DOCTYPE html>
<html>
<head>
<title>ENV Example</title>
</head>
<body>
<h1>$name</h1>
HTML
foreach my $key (keys %ENV){
print "$key = $ENV{$key}<br/>\n";
}
print <<HTML;
</body>
</html>
HTML


Sign In
Create Account


Back to top









