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