MESSAGE
DATE | 2003-04-07 |
FROM | Ruben I Safir
|
SUBJECT | Re: [hangout] Pattern Matching
|
How can that be done? It can't be done like that. You need to take a more sufficticated aproach.
IUt the comany is always the 2nd field, then
split /PATTERN/,EXPR,LIMIT
or just split it on the comma
If it has an extra field, canatonate it back together again with the comma.
On 2003.04.07 14:03 Joe Villari wrote: > > I have a comma seperated file that I'm splitting into an array in perl. > I'm trying to write a pattern that will make a comma, Some Company, Inc, > read as a comma and not cause $_ to split with -at-data = split /,/, $_; > > Joe > > ____________________________ > NYLXS: New Yorker Free Software Users Scene > Fair Use - > because it's either fair use or useless.... > NYLXS is a trademark of NYLXS, Inc > -- __________________________ Brooklyn Linux Solutions __________________________ DRM is THEFT - We are the STAKEHOLDERS http://fairuse.nylxs.com
http://www.mrbrklyn.com - Consulting http://www.inns.net <-- Happy Clients http://www.nylxs.com - Leadership Development in Free Software http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and articles from around the net http://www2.mrbrklyn.com/downtown.html - See the New Downtown Brooklyn....
1-718-382-0585 ____________________________ NYLXS: New Yorker Free Software Users Scene Fair Use - because it's either fair use or useless.... NYLXS is a trademark of NYLXS, Inc
|
|