[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] joining columns in csv files



On Wed, Nov 15, 2000 at 07:24:00PM +0000, fergal daly wrote:
> perl -pe '$i=1;s/,/$i++=~m#^4|5|6$#?"":","/ge'
                           ^^^^^^^^^^
I'm sure you meant:

> perl -pe '$i=1;s/,/$i++=~m#^(4|5|6)$#?"":","/ge'

Otherwise, 43 (/^4/), 157 (/5/), or 26 (/6$/) would also match.

David Henderson
--
For the latest news about Star Trek and Buffy books, visit Psi Phi!
Star Trek Books: http://www.psiphi.org/cgi/upc-db/           <*>
Buffy TVS Books: http://www.psiphi.org/cgi/buffy-db/

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe