use strict; my @lines = <>; chomp @lines; my $sql = '(' . join(",\n",( map { "'$_'" } @lines)) . ")\n"; print $sql;
In reply to Re: wanting to make a file of strings usable by SQL
by helphand
in thread wanting to make a file of strings usable by SQL
by jjohhn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |