Just add one line to your processing loop (this is untested but should get the idea across):
{ print "$line \n"; $sql = $readline; $sql =~ s/\$table\_name/$table_name/g; executeSQL(); }
In reply to Re: Storing a variable in a file and processing within the script
by marinersk
in thread Storing a variable in a file and processing within the script
by tony@perlmonks.org
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |