diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-12-18 22:12:36 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-12-18 22:12:36 +0000 |
commit | 801de10ef663bd7b3ee68821109e12178694162c (patch) | |
tree | 9279f5cbd3e48dbd4ecf60110729045c1e6baae2 | |
parent | e9b37efe4ad36ff6af8f88cfcf6b4f4d152c37c0 (diff) | |
download | perl-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.pod | 17 |
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 |