in reply to What's the difference between named and unnamed hashes?

A named hash is associated with one particular variable (although references to it can be created), where as an anonymous hash is refered to purely through a reference, and subsequently must live in a scalar (be it a named variable or otherwise).

Also the syntax you provided is broken with the named hash (for anyone puzzled by the odd syntax) as the dereference is incorrect, what it needs to be is

my %hash = %$response;
See. perlreftut and tye's References quick reference for a quick start on references.
HTH

_________
broquaint

update: disassociated krisahoch from the dodgy syntax :)

Replies are listed 'Best First'.
Re: Re: What's the difference between named and unnamed hashes?
by krisahoch (Deacon) on Jun 06, 2003 at 14:17 UTC

    broquaint,

    Thank you for the quick overview, I am going to look at those references right now as well.

    PS. PLEASE DO NOT ASSOCIATE ME with that particular syntax. I did not write it!!!!

    Thanks!

    Kristofer Hoch

    Si vos can lego is, vos es super erudio