in reply to Re^2: wanting to make a file of strings usable by SQL
in thread wanting to make a file of strings usable by SQL
Try this
#! perl -slw use strict; chomp( $_ = <DATA> ); print "($_,"; while( <DATA> ) { chomp; $_ = "'$_'"; last if eof(DATA); print "$_,"; } print "$_)"; __DATA__ one two three four
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: wanting to make a file of strings usable by SQL
by Aristotle (Chancellor) on Dec 27, 2005 at 04:47 UTC | |
by BrowserUk (Patriarch) on Dec 27, 2005 at 05:03 UTC | |
by Aristotle (Chancellor) on Dec 27, 2005 at 07:13 UTC | |
by BrowserUk (Patriarch) on Dec 27, 2005 at 07:45 UTC | |
by Aristotle (Chancellor) on Dec 27, 2005 at 08:12 UTC |