develooper Front page | perl.perl5.porters | Postings from January 2012

Re: defined(@arr), defined (%hash)

Thread Previous | Thread Next
David Nicol
January 3, 2012 15:54
Re: defined(@arr), defined (%hash)
Message ID:
On Tue, Jan 3, 2012 at 4:54 PM, Ricardo Signes
> My point is more that it has already been made a weird snowflake.  I do want
> defined to create a scalar context, but right now, it's weirder.

The weirdness comes from the fact that defined creates a "defined
context" and if DEFINED was treated like the context it is, things
"... if defined $X ;"
could become faster than
" ... if $X "
instead of slower.

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