Talk About Network

Google


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 dup...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 10956 of 11509
Post > Topic >>

RE: Re: CSV duplicate

by manojkumarg@[EMAIL PROTECTED] (Manoj) Apr 19, 2008 at 11:51 PM

Thanks Jeff... :)
Is this all mentioned in any Perl books?


-----Original Message-----
From: Jeff Pang [mailto:pangj@[EMAIL PROTECTED]
 
Sent: Saturday, April 19, 2008 8:47 AM
To: Perl Beginners
Subject: Re:Re: CSV duplicate


=====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.

-- 
To unsubscribe, e-mail: beginners-unsubscribe@[EMAIL PROTECTED]
 additional commands, e-mail: beginners-help@[EMAIL PROTECTED]

 




 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 Jul 23 21:20:54 CDT 2008.