Help for this page

Select Code to Download


  1. 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.
    
  2. or download this
    #!e:\perl\bin\perl.exe
    use strict;
    ...
        postsubmit => \&write_sub,
        params => []});
    RunPages;
    
  3. 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;
    }
    
  4. or download this
    sub write_valid {
        my $vars = shift;
    ...
        unless ($e[-1]){$ret_code |= 2};
        return $ret_code;
    }
    
  5. or download this
    package Framework;
    #!/usr/bin/perl -w
    ...
        if (DEBUG) {print scalar localtime , " : ", @_, "\n"};
    }