in reply to Re: Hash Array Help
in thread Hash Array Help

Hey guys,
Thanks for the fast reply. I am still getting a weird output:
HASH(0x140031c58) HASH(0x140031e28) HASH(0x140031e98) HASH(0x140031f08 +) HASH(0x\ 140031f78) HASH(0x140031fe8) KEY: state VALUE: 0 ________________________ KEY: new_state VALUE: 0 ________________________ KEY: stack_char VALUE: ________________________ KEY: new_stack_char VALUE: a ________________________ KEY: char VALUE: a

Any ideas?

thanks again in advance.

Replies are listed 'Best First'.
Re: Re: Re: Hash Array Help
by buckaduck (Chaplain) on Mar 11, 2001 at 21:32 UTC
    Now that you are using hash references in your array (I assume), you must de-reference them when you use them. If your foreach loop variable is $hash, you must access the hash itself via %$hash

    buckaduck

Re: Re: Re: Hash Array Help
by archon (Monk) on Mar 11, 2001 at 12:13 UTC
    Which weird output? Are you talking about the HASH references? I don't see why the code you pasted would print that. Is there another print you added that you haven't told us about?