in reply to Re: Hash Variable
in thread Hash Variable

I see where you're creating hash:
$hash{$vars[2]} = join(' ', @vars[0,1,3]);
How would I print that out?
foreach $var2 (keys %hash){ print "value: $hash{$var2}\n"; }
...doesn't work too well.

qball~"I have node idea?!"

Replies are listed 'Best First'.
Re: Re: Re: Hash Variable
by FrankG (Scribe) on Apr 06, 2001 at 02:11 UTC
    What do you mean "doesn't work too well"? That should work.
    Is an error occuring, is there not output, or is it not the way you want it to look?

    - FrankG

      It's not printing unique values. However, it is printing "key ' ' already exists in hash" after each line.

      So basically it's printing all the rows even those with $var2 that aren't unique.

      qball~"I have node idea?!"