Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Reading in data that is

by davorg (Chancellor)
on Oct 10, 2001 at 19:43 UTC ( #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? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2022-08-14 15:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?