New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use strict broken with $a and $b #920
Comments
From aaron@caxton.comThe following program does not generate an error. use strict; Using $c will generate an error. My guess is that this has to do with Perl Info
|
From [Unknown Contact. See original ticket]
Do we have some statistics on the ten most frequently submitted non-bugs ?
That could be true, but I am unsure. In any case the following patch Inline Patch--- ./perl/lib/strict.pm Tue Dec 07 20:34:16 1999
+++ ./perl/lib/strict-patch.pm Tue Dec 07 21:13:56 1999
@@ -71,10 +71,26 @@
=back
-See L<perlmodlib/Pragmatic Modules>.
+=head1 CAVEATS
+
+This pragma will I<not> catch undeclared variables that Perl itself sets or
+uses (eg. C<$_> and friends, all the C<$^x> variables, C<@INC>... See
+L<perlvar> for more). In most cases, it is certainly a good thing as declaring
+them wouldn't make sense. However there are a few occurences where it might
+bite you back, most notably with C<$a> and C<$b> which are needed by
+ =cut $strict::VERSION = "1.01"; .Robin |
From [Unknown Contact. See original ticket]Robin Berjon <robin@knowscape.com> wrote
Errr.. You seem to have overlooked http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/1999-12/msg00009.html where I sent a patch in response to the last time this was reported. Mike Guy |
From [Unknown Contact. See original ticket]At 18:55 09/12/1999 +0000, M.J.T. Guy wrote:
Well, overlooked is not the exact word I would use. I did search the .Robin |
Migrated from rt.perl.org#1863 (status was 'resolved')
Searchable as RT1863$
The text was updated successfully, but these errors were encountered: