Help for this page

Select Code to Download


  1. or download this
    my $sql ='select from table where'
       . join(' and ', (
    ...
          "name = $form_name",
       )
    );
    
  2. or download this
    my %hash = (
       username => $form_username,
    ...
    
    my $sql = 'select from table where ' .
       join(' and ', map { qq|$_ = "$hash{$_}"| } keys %hash);