Help for this page

Select Code to Download


  1. or download this
    use CGI;
    use strict;
    ...
    {
            $parameters{$key} = [$query->param($key)];
    }
    
  2. or download this
    foreach my $key (keys %defaults)
    
  3. or download this
              # then to do your substitution:
    $SQLStatement =~ s/\$(\w+)/$parameters{$1}[0]/eg;
    
  4. or download this
    foreach my $key (keys %defaults)
    {
    ...
                   # then use your $SQLStatement ....
         }
    }