Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: hash from CSV-like structure

by manav_gupta (Acolyte)
on Jan 05, 2008 at 11:51 UTC ( [id://660533] : note . print w/replies, xml ) Need Help??


in reply to Re: hash from CSV-like structure
in thread hash from CSV-like structure

Super, many thanks jZed - that works!

Replies are listed 'Best First'.
Re^3: hash from CSV-like structure
by jZed (Prior) on Jan 05, 2008 at 19:06 UTC
    To avoid undef warnings, you might want to make the duplicate check more like this:
    next if $results{$val} and $hash->{$key1} and $hash->{$key1}->{$key2};