Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: Re: Extracting array of hashes from data

by srawls (Friar)
on Jun 10, 2001 at 02:06 UTC ( #87241=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Extracting array of hashes from data
in thread Extracting array of hashes from data

Took me a sec, but I got it. In your data, sometimes you have spaces after the ;, and sometimes you don't. After each of your splits (or just the split/;/'s) add  \s* as in:

my @splitvalue = split /;\s*/, $value;

The 15 year old, freshman programmer,
Stephen Rawls


Comment on Re: Re: Re: Extracting array of hashes from data
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2014-09-16 15:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (33 votes), past polls