summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Bell <madcityzen@gmail.com>2015-12-08 09:35:15 -0600
committerRicardo Signes <rjbs@cpan.org>2015-12-14 18:46:31 -0500
commit55fe01c58bbe0e1240f411cf77a59c0a59c6af42 (patch)
treeded8569fac2cf9d254564787e4c6056789650ed4
parentd6fa2e205a9196efd920b859826cdea304a8374b (diff)
downloadperl-55fe01c58bbe0e1240f411cf77a59c0a59c6af42.tar.gz
add note about scope in strict docs
The strict pragma only effects the current file or block scope, but we never mention that in the docs. Thanks KES for reporting this.
-rw-r--r--lib/strict.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/strict.pm b/lib/strict.pm
index 03ed21ca81..93f2122a23 100644
--- a/lib/strict.pm
+++ b/lib/strict.pm
@@ -1,6 +1,6 @@
package strict;
-$strict::VERSION = "1.09";
+$strict::VERSION = "1.10";
# Verify that we're called correctly so that strictures will work.
unless ( __FILE__ =~ /(^|[\/\\])\Q${\__PACKAGE__}\E\.pmc?$/ ) {
@@ -94,6 +94,10 @@ strict - Perl pragma to restrict unsafe constructs
=head1 DESCRIPTION
+The C<strict> pragma disables certain Perl expressions that could behave
+unexpectedly or are difficult to debug, turning them into errors. The
+effect of this pragma is limited to the current file or scope block.
+
If no import list is supplied, all possible restrictions are assumed.
(This is the safest mode to operate in, but is sometimes too strict for
casual programming.) Currently, there are three possible things to be