summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-12-18 22:12:36 +0000
committerNicholas Clark <nick@ccl4.org>2006-12-18 22:12:36 +0000
commit801de10ef663bd7b3ee68821109e12178694162c (patch)
tree9279f5cbd3e48dbd4ecf60110729045c1e6baae2
parente9b37efe4ad36ff6af8f88cfcf6b4f4d152c37c0 (diff)
downloadperl-801de10ef663bd7b3ee68821109e12178694162c.tar.gz
Making strict et al propagate into autoloaded subroutines seems a
worthy todo. p4raw-id: //depot/perl@29588
-rw-r--r--pod/perltodo.pod17
1 files changed, 17 insertions, 0 deletions
diff --git a/pod/perltodo.pod b/pod/perltodo.pod
index e7dd252566..a68e5b01ea 100644
--- a/pod/perltodo.pod
+++ b/pod/perltodo.pod
@@ -141,6 +141,23 @@ when is duplicated in F<makedef.pl>. Writing things twice is bad, m'kay.
It would be good to teach C<embed.pl> to understand the conditional
compilation, and hence remove the duplication, and the mistakes it has caused.
+=head2 use strict; and AutoLoad
+
+Currently if you write
+
+ package Whack;
+ use AutoLoader 'AUTOLOAD';
+ use strict;
+ 1;
+ __END__
+ sub bloop {
+ print join (' ', No, strict, here), "!\n";
+ }
+
+then C<use strict;> isn't in force within the autoloaded subroutines. It would
+be more consistent (and less surprising) to arrange for all lexical pragmas
+in force at the __END__ block to be in force within each autoloaded subroutine.
+
=head1 Tasks that need a little sysadmin-type knowledge
Or if you prefer, tasks that you would learn from, and broaden your skills