Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Convert string to data structure

by Athanasius (Archbishop)
on Sep 21, 2012 at 15:52 UTC ( [id://994927]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! perl
    use strict;
    ...
    push @array, { 'chapter' => $_, 'name' => $terms{$_} } for sort keys %
    +terms;
    
    print Dumper(\@array);
    
  2. or download this
    $VAR1 = [
              {
    ...
                'chapter' => '2'
              }
            ];
    

Log In?
Username:
Password:

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

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

    No recent polls found