in reply to Re: Hash Printing Question
in thread Hash Printing Question

When I did that, I got the following:
name: {'name'}
as output.

Replies are listed 'Best First'.
Re: Re: Re: Hash Printing Question
by chipmunk (Parson) on Dec 01, 2000 at 01:48 UTC
    Oops... In a double-quoted string, ${input_queue}{'name'} is interpreted as the scalar variable $input_queue, followed by the string {'name'}. I didn't realize that when I wrote my answer either.

    So, you really do need to remove those extra braces: print "name: $input_queue{'name'}\n";