- or download this
module : Optional, but highly recommended.
A page's perl code can be split out into
...
postsubmit : Sub reference run after the page is displayed.
params : Determines which CGI params are to be kept alive
between invocations.
- or download this
#!e:\perl\bin\perl.exe
use strict;
...
postsubmit => \&write_sub,
params => []});
RunPages;
- or download this
sub write_sub {
my $vars = shift;
...
$sth = $dbh->prepare ("INSERT INTO entries (id, date, title, entry
+) VALUES ($maxid, $date,$title, $entry)")|| die "$! and $DBI::errstr"
+;
$sth->execute;
}
- or download this
sub write_valid {
my $vars = shift;
...
unless ($e[-1]){$ret_code |= 2};
return $ret_code;
}
- or download this
package Framework;
#!/usr/bin/perl -w
...
if (DEBUG) {print scalar localtime , " : ", @_, "\n"};
}