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

Parsing a file with parentheses to build a hash

by xcellsior (Novice)
on Nov 13, 2014 at 15:45 UTC ( [id://1107117]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    (
      (SECTION (Section_KEY Value1)
    ...
        )
      )
    )
    
  2. or download this
    open ( BRD, "<foo.kicad_pcb") or die("ha ha");
    while (<BRD>)
    ...
      $DATA_HASH{SECTION}{KEY3} = Value4;
      $DATA_HASH{NEW_SECTION}{SUB_SECTION}{KEY4} = Value5;
      $DATA_HASH{NEW_SECTION}{NEW_SUB_SECTION}{KEY5} = Value6;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1107117]
Approved by Corion
Front-paged by toolic
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found