Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: hash from CSV-like structure

by FunkyMonk (Chancellor)
on Jan 04, 2008 at 20:40 UTC ( [id://660467] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %hash;
    while ( <DATA> ) {
    ...
    200326951|_|rel_Access1|_|200315786|_|
    200326951|_|rel_Access2|_|200315482|_|
    200326951|_|rel_Access2|_|200315786|_|
    
  2. or download this
    $VAR1 = {
              '200326951' => {
    ...
                               'rel_Access1' => '200315786'
                             }
            };