Help for this page

Select Code to Download


  1. or download this
    read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
    
  2. or download this
    use CGI;
    my $cgi = new CGI;
    my $var1 = $cgi->param('FORM_VAR_1');
    
  3. or download this
    $temp = "$table" . "ips" . ".txt";
    $temp1 = "$table" . "results" . ".txt";
    
  4. or download this
    $temp = "${table}ips.txt";
    $temp1 = "${table}results.txt";
    
  5. or download this
    open(TABLEIP, "<$temp");
    while(<TABLEIP>) {
    ...
       }
     }
    close(TABLEIP);
    
  6. or download this
    use IO::File;
    ....
    ...
    }
    # note that you do not have to close the $file handle, falling
    # out of the scope and perl will automatically close the file.
    
  7. or download this
    while(<TABLERESULTS>)
     {
    ...
        {last}
       }
     }
    
  8. or download this
    while(<TABLERESULTS>)
    {
    ...
      $counter == 1 ? {$scoretotal = $_} :
        $counter == 2 ? {$votetotal = $_} : {last}
    }