develooper Front page | perl.perl5.porters | Postings from November 2011

defined(@arr), defined (%hash)

Thread Next
From:
Ricardo Signes
Date:
November 21, 2011 15:10
Subject:
defined(@arr), defined (%hash)
Message ID:
20111121230948.GB6538@cancer.codesimply.com

Is there any defense for these constructions?

Why shouldn't:

  1. defined(@arr) and defined(%hash) warn
  2. (@arr // $x) and (%hash // $x) warn

Definedness on hashes and arrays has come up before as something to eject into
space:
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2009-10/msg00775.html

-- 
rjbs

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