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

Re: deprecation of defined(%hash)

Thread Previous | Thread Next
Hans Dieter Pearcey
December 10, 2009 04:51
Re: deprecation of defined(%hash)
Message ID:
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}


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About