Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Convert string to data structure

by Kenosis (Priest)
on Sep 21, 2012 at 16:02 UTC ( #994931=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Modern::Perl;
    use Data::Dumper;
    ...
    }
    
    say Dumper \@array;
    
  2. or download this
    $VAR1 = [
              {
    ...
                'chapter' => '2.'
              }
            ];
    
  3. or download this
    /(\d+\.\d*)\s+\.+\s+(\S+)\s*/g
       ^  ^ ^   ^  ^  ^   ^   ^  ^
    ...
       |  | + - Capture zero or more digits
       |  + - Capture a period
       + - Capture one or more digits
    

Log In?
Username:
Password:

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

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

    My favorite cookbook is:










    Results (145 votes), past polls