Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 examining the Monastery: (12)
As of 2015-07-06 13:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (74 votes), past polls