in reply to wanting to make a file of strings usable by SQL
use strict; my @lines = <>; chomp @lines; my $sql = '(' . join(",\n",( map { "'$_'" } @lines)) . ")\n"; print $sql;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: wanting to make a file of strings usable by SQL
by beachbum (Beadle) on Dec 27, 2005 at 15:56 UTC |