=====Original Message===== >From :[EMAIL PROTECTED]; >To :John W. Krahn <[EMAIL PROTECTED]>; >Cc :Perl Beginners <beginners@perl.org>; >Date:Fri Apr 18 13:51:58 CST 2008 >Subject:Re: CSV duplicate > >I haven't seen hash used in this format. >$data{ $val1 }{ $val2 }++; Can yor please tell what this means? >
It's a hash with two levels of keys. That's to say, %data is a hash, $data{$val1} refer to an anonymous hash (the second level hash), $data{$val1}{$val2} get the second level hash's value via the key $val2. using Data::Dumper you will see the data stru clearly. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/