G
Guy
Ok, I'm creating my own website on genealogy.
I'd like visitors to be able to search through my site, search for names
etc...
I'm alright with HTML and I've got enough experience with Javascript.
But I need to do some Server-Side programming.
The only experience I have here is with Perl, but many years ago.
I'm not sure if there are better ways but I like Perl, and, well, I'm not
familiar with anything else.
The only book I have on Perl is: "Perl5 for Web programming" circa 1998.
This book showed me basic Perl stuff such as:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "html stuff \n";
$temp = $ENV{'QUERY_STRING'};
@pairs = split(/&/,$temp);
open (myfile, "names.txt");
foreach $items(@pairs) {
But I see stuff like this, which appears to be related to cgi.pm, and which
I never really learned.
use CGI qw/:standard/;
$q = new CGI;
@names = $q->param;
$value = $q->param('t01');
print $q->header,
$q->start_html('hello world'),
$q->end_html;
Do I need a new book on Perl, or do I need a book on CGI.pm (if such a thing
exists). I'd like to understand this $q=new CGI stuff.
Can anyone suggest a book or type of book? Thanks for all,
Guy
I'd like visitors to be able to search through my site, search for names
etc...
I'm alright with HTML and I've got enough experience with Javascript.
But I need to do some Server-Side programming.
The only experience I have here is with Perl, but many years ago.
I'm not sure if there are better ways but I like Perl, and, well, I'm not
familiar with anything else.
The only book I have on Perl is: "Perl5 for Web programming" circa 1998.
This book showed me basic Perl stuff such as:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "html stuff \n";
$temp = $ENV{'QUERY_STRING'};
@pairs = split(/&/,$temp);
open (myfile, "names.txt");
foreach $items(@pairs) {
But I see stuff like this, which appears to be related to cgi.pm, and which
I never really learned.
use CGI qw/:standard/;
$q = new CGI;
@names = $q->param;
$value = $q->param('t01');
print $q->header,
$q->start_html('hello world'),
$q->end_html;
Do I need a new book on Perl, or do I need a book on CGI.pm (if such a thing
exists). I'd like to understand this $q=new CGI stuff.
Can anyone suggest a book or type of book? Thanks for all,
Guy