Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Convert string to data structure

by Kenosis (Priest)
on Sep 21, 2012 at 16:02 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://994931]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-19 03:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found