in reply to Storing a variable in a file and processing within the script
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(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Storing a variable in a file and processing within the script
by tony@perlmonks.org (Initiate) on Jul 17, 2013 at 16:12 UTC | |
by Preceptor (Deacon) on Jul 17, 2013 at 17:01 UTC | |
by marinersk (Priest) on Jul 18, 2013 at 22:21 UTC | |
by tony@perlmonks.org (Initiate) on Jul 19, 2013 at 11:00 UTC |