On Tue, 2 Oct 2001 [EMAIL PROTECTED] wrote:
> While this is completely accurate for the sample data you provided it will
> substitute all 1's with 0's. Is there any chance of 1's in earlier fields,
> or an 11, 12, 21, 151, etc in the last field.
For that matter, if you want a consistent and more robust way of modifying
comma-separated files, look into using the various Text::* modules (CSV,
CSV_XS, xSV, etc), or, my favorite, DBD::CSV, which lets you manipulate a
CSV file with SQL (very simple to modify values in a consistent fashion!)
via the DBI.
-- Brett
http://www.chapelperilous.net/
------------------------------------------------------------------------
This sentence no verb.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]