Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Convert string to data structure

by jdporter (Canon)
on Sep 21, 2012 at 18:44 UTC ( #994973=note: print w/ replies, xml ) Need Help??


in reply to Convert string to data structure

my @a = map { my %h; @h{qw( chapter name )} = split / \.+ /; \%h } split / (?=\d)/, $str;


Comment on Re: Convert string to data structure
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2015-07-30 06:12 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 (270 votes), past polls