Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re:Re: CSV dupl...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 10956 of 11065
Post > Topic >>

Re:Re: CSV duplicate

by pangj@[EMAIL PROTECTED] (Jeff Pang) Apr 19, 2008 at 11:16 AM

=====Original Message=====
>From :manojkumarg@[EMAIL PROTECTED]
 
>To :John W. Krahn <krahnj@[EMAIL PROTECTED]
>; 
>Cc :Perl Beginners <beginners@[EMAIL PROTECTED]
>; 
>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.




 3 Posts in Topic:
Re:Re: CSV duplicate
pangj@[EMAIL PROTECTED]   2008-04-19 11:16:46 
RE: Re: CSV duplicate
manojkumarg@[EMAIL PROTEC  2008-04-19 23:51:02 
Re: Re: CSV duplicate
chas.owens@[EMAIL PROTECT  2008-04-19 14:57:16 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 15:01:11 CDT 2008.