in reply to Strip Quotations from files

Why not escape the quotes (by doubling them, IIRC) instead?

Update: Good catch, grinder, but this script may be preparing files for a program somewhat less clever than DBI. If quotes are the only problem (which admittedly seems unlikely), why introduce dependencies?

--
The hell with paco, vote for Erudil!
:wq

Replies are listed 'Best First'.
Re:x2 Strip Quotations from files
by grinder (Bishop) on May 31, 2002 at 21:06 UTC
    Why not let DBI deal with the quoting issues (via the quote() method) instead?


    print@_{sort keys %_},$/if%_=split//,'= & *a?b:e\f/h^h!j+n,o@o;r$s-t%t#u'
      The script was written in the event that other special characters may need to be removed eg. &*^#@! All we have to do then is update the script.