in reply to Re: Blessing interior hashes
in thread Blessing interior hashes

Beware that eval { %$ref } may emit a warning.

my $ref = [{}]; eval { %$ref || 1 }; __END__ Pseudo-hashes are deprecated at ...

lodin

Replies are listed 'Best First'.
Re^3: Blessing interior hashes (pseudo-hashes)
by ikegami (Patriarch) on Oct 03, 2007 at 19:42 UTC
    Good catch. In the presented if/elsif scenario, you can avoid this by checking for arrays first.