Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Reading in data that is

by davorg (Chancellor)
on Oct 10, 2001 at 19:43 UTC ( [id://118018]=note: print w/replies, xml ) Need Help??


in reply to Reading in data that is

Your problem is that split with no arguments will split on whitespace - and your data record contains lots of white space within the fields.

You probably want a split regualar expression something like this:

split /"\s*"/;

But that will still leave you with extra quotes in the first and last fields that you'd have to remove.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you don't talk about Perl club."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://118018]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-03-29 12:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found