In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/8556cefced69a75011f974677cd40134d3b6704e?hp=dd6d5da4aa2346a1f14f6e63272174ddf1ce9f29>
- Log ----------------------------------------------------------------- commit 8556cefced69a75011f974677cd40134d3b6704e Author: Abigail <[email protected]> Date: Sun Nov 13 14:08:38 2016 +0100 Defined on aggregates is no longer allowed. Perlfunc was still reporting it as deprecated, and that it will be deleted in the future. ----------------------------------------------------------------------- Summary of changes: pod/perlfunc.pod | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 36df5c7..18bb465 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -1541,10 +1541,9 @@ makes it spring into existence the first time that it is called; see L<perlsub>. Use of L<C<defined>|/defined EXPR> on aggregates (hashes and arrays) is -deprecated. It -used to report whether memory for that aggregate had ever been -allocated. This behavior may disappear in future versions of Perl. -You should instead use a simple test for size: +no longer supported. It used to report whether memory for that +aggregate had ever been allocated. You should instead use a simple +test for size: if (@an_array) { print "has array elements\n" } if (%a_hash) { print "has hash members\n" } -- Perl5 Master Repository
