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

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

Thread Previous | Thread Next
Nicholas Clark
January 3, 2012 06:15
Re: defined(@arr), defined (%hash)
Message ID:
On Tue, Jan 03, 2012 at 09:08:35AM -0500, Matthew Horsfall (alh) wrote:
> On Tue, Jan 3, 2012 at 9:02 AM, Nicholas Clark <> wrote:
> > Whatever is on the left of the AASSIGN is called "array", whether it's an
> > array, a list or a hash. (I can't think of anything else that's
> > syntactically valid to put there)
> >
> >
> Yeah.
> I'm considering tackling this on Sunday at Perl Oasis unless someone else
> claims it before then.
> Though I'm not sure honestly why defined(() = ...) even makes sense; seems
> like that should be its own warning...

I can't see any sense for it. I think it can only tell you something
implementation dependent about temporary internal storage. Which, obviously
is something essential to know about, and never a mistake.

Nicholas Clark

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