You write foreach my $line (<DATA>) {, but at that point, you've already read in all of <DATA>, to @lines. What's more, you've already opened a loop over @lines -- foreach $line ( @lines ) {. Finally, you only close one of these two loops.
You need to use strict; and pay attention to what perl tells you when the code fails.
In reply to Re^3: Quoting in DBI sql query for on the fly query
by ryantate
in thread Quoting in DBI sql query for on the fly query
by ParisR
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |