develooper Front page | perl.perl5.porters | Postings from December 2009

Re: deprecation of defined(%hash)

Thread Previous | Thread Next
From:
Hans Dieter Pearcey
Date:
December 10, 2009 04:51
Subject:
Re: deprecation of defined(%hash)
Message ID:
1260378657-sup-9483@glaive.weftsoar.net
Excerpts from Sean's message of Tue Dec 08 10:14:19 -0500 2009:
> Why was this feature deprecated?  Is there another way to check for
> the existence of a hash or array without creating the associated glob?
> None of the alternatives I have tried does what I want:

Try: exists $test::{h} && defined *test::h{HASH}

hdp.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About