summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-11-25 17:08:18 +0000
committerNicholas Clark <nick@ccl4.org>2010-11-25 17:10:56 +0000
commit88e9444c4ef58850472b05bba333f4072222d0da (patch)
treed9b48abc5e3966428d539fe5780b71ab3382ef8c /pod
parentb19934fbc3c981a7e4bb888f0d6a20f926a0bc17 (diff)
downloadperl-88e9444c4ef58850472b05bba333f4072222d0da.tar.gz
Make BEGIN {require 5.12.0} behave as documented.
Previously in a BEGIN block, require was behaving identically to use 5.12.0 - ie erroneously executing the use feature ':5.12.0'; and use strict; use warnings behaviour, which only use was documented to provide.
Diffstat (limited to 'pod')
-rw-r--r--pod/perldelta.pod6
1 files changed, 5 insertions, 1 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index f269ac3399..1738a472b1 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -356,7 +356,11 @@ L</Modules and Pragmata>.
=item *
-XXX
+C<BEGIN {require 5.12.0}> now behaves as documented, rather than behaving
+identically to C<use 5.12.0;>. Previously, C<require> in a C<BEGIN> block
+was erroneously executing the C<use feature ':5.12.0'> and
+C<use strict; use warnings;> behaviour, which only C<use> was documented to
+provide.
=back