Help for this page

Select Code to Download


  1. or download this
    my %variables= (
        schema => 'myschema',
    ...
    my $statement= 'select * from $schema.app_table where col1 = $name';
    
    $statement =~ s/\$(\w+)/$variables{ $1 } || '$'.$1/ge;