Hi Chris,

On Thu, Jan 6, 2011 at 7:25 PM, Chris Stinemetz
<cstinem...@cricketcommunications.com> wrote:
> I am having problems using hash function. I would like to only extract 4 
> columns of data from a text file that is ; delimited.
>
> Below is my code along with the errors I am receiving. Any help is 
> appreciated.

Actually I would always recommend to use a CSV parser like Text::CSV -
there are many ways in which CSV files can be tricky (line feeds in
fields, quotes around text containing semicolons or commas, etc).

Text::CSV takes care of all this nastiness for you and you can
leverage it's clean interface and only have to worry about your own
code.
--
Mike

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to