Help for this page

Select Code to Download


  1. or download this
    my $sql = "SELECT script FROM scripts where name=?";
    my $sth = $dbh->prepare($sql);
    $sth->execute($ref->{name});
    
  2. or download this
    "$sql"                 ->  $sql
    "$row_hash->{script}"  ->  $row_hash->{script}
    "$script"              ->  $script
    
  3. or download this
    $r->puts(<<"END");     \
    $post                   >  $->puts($post)
    END                    /
    
  4. or download this
    my $row_hash = $sth->fetchrow_hashref()
       or die(...);
    
    $script = $row_hash->{script};
    
  5. or download this
    my $result = eval $script;
    defined($result)
       or die(...);
    
    $post .= $result;