-----Original Message----- From: James Edward Gray II [mailto:[EMAIL PROTECTED] Sent: Monday, March 29, 2004 3:06 PM To: ewalker Cc: [EMAIL PROTECTED] Subject: Re: hash
On Mar 29, 2004, at 4:03 PM, [EMAIL PROTECTED] wrote:
any ideas on how I can access say all the values of a hash and not care what the keys are?
Sure:
foreach (keys %some_hash) { # do something with $_, which will hold one key at a time... }
James
Hey, That didn't work I didn't explain it right. I have an array of hash pointers. Each hash has like 2 key/value pairs.
I want to travers the array and just print out the values from the hashes., Will I need to nest loops here?
Eric
If you are just looking for debugging output take a look at
perldoc Data::Dumper
print Dumper(\%some_hash);
Will show you the entire structure.
http://danconia.org
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>