Help for this page

Select Code to Download


  1. or download this
    ---
    db_host: localhost
    db_database: poll
    db_user: itpeople
    db_pass: secret
    
  2. or download this
    --- #YAML:1.0
    identifier: IT_Staff
    ...
      id: q01
    - question: Please rate ...
      id: q02
    
  3. or download this
    #!/usr/bin/perl
    
    ...
            or die "$sql_create: $dbh->errstr\n";
    
    exit;
    
  4. or download this
    #!/usr/bin/perl
    
    ...
              or die "Failed to connect via DBI:$!\n";
      return $dbh;
    }
    
  5. or download this
    #!/usr/bin/perl
    
    ...
    
    $template->param( 'polls'     => $polls );
    print $template->output;
    
  6. or download this
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    ...
    <meta name="generator" content="Perl-Script using HTML::Template" />
    <link rel="stylesheet" type="text/css" href="default.css" />
    </head>
    
  7. or download this
    <TMPL_INCLUDE NAME="header.tmpl">
    <body>
    ...
    </div>
    </body>
    </html>
    
  8. or download this
    <TMPL_INCLUDE NAME="header.tmpl">
    <body>
    ...
    </TMPL_IF>
    </body>
    </html>
    
  9. or download this
    <TMPL_INCLUDE NAME="header.tmpl">
    <body>
    ...
    </TMPL_LOOP>
    </body>
    </html>