Sean D. Rowe wrote:

> I know it's a reference to a hash.  What I don't know is why it's printing
> out like this.  I have hash values that I need to print out, but not in

you know it's a reference to a hash. good. the HASH(Ox1c6ed80) thingy is the 
memory address of the reference.

> any order, so I put each hash value that I want to print in a join
> statement in

your hash value is hash reference. consider:

#!/usr/bin/perl -w
use strict;

my $hash;
$hash->{a} = { a => 1};
$hash->{b} = { b => 2};

print join("\n",values %{$hash}),"\n";

__END__

see if you can figure out what prints out. if you don't know what will print 
out from the above, you haven't master reference in perl yet.

not only is $hash a reference to hash. its values are also reference to 
hash!

if you still can't figure out your problem, post the portion of code that 
you suspect is wrong so we can check for you.

david

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to