Hello all,
I know there's gotta be a nice and easy way to do this.
Basically take, for example, the following file:
----------FILE----------
item1a,item2a,"item3a part1, item3a part2",item4a,item5a,item6a
item1b,item2b,"item3b part1, item3b part2",item4b,item5b,item6b
......
----------FILE----------
So, when reading in this file I need to parse each line out into the proper
segments:
[open file]
while (<FILE>) {
my ($item1,$item2,$item3,$item4,$item5,$item6) = [parse $_]
}
[close file]
What would be the best way to handle this?
Should I use something like Text::CSV handle this?
I would prefer to not need an extra module, but am willing to use one if
necessary.
Thanks.
--Alex
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm