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
strict module #906
Comments
From juerg_schulthess@yahoo.comThe following code complains only for $c: use strict: $a = ""; Regards, |
From [Unknown Contact. See original ticket]Juerg Schulthess wrote:
That's a feature. 'use strict' doe"sn't check for '$a' nor '$b' so you can Hope it helps François Désarménien |
From [Unknown Contact. See original ticket]Hi, Juerg Schulthess:
$a and $b are special (for use in sort() code). -- |
From [Unknown Contact. See original ticket]How do I close this ticket? -- J. Schulthess ===== |
From [Unknown Contact. See original ticket]François Désarménien wrote
True enough. But given the frequency with which this comes up, it's Patch for perl5.005_62 attached. PS Juerg: you don't need to do anything to close a bug report. Mike Guy Inline Patch--- ./lib/strict.pm.orig Wed Dec 1 14:32:44 1999
+++ ./lib/strict.pm Wed Dec 1 14:34:21 1999
@@ -56,6 +56,9 @@
The local() generated a compile-time error because you just touched a global
name without fully qualifying it.
+Because of their special use by sort(), the variables $a and $b are
+exempted from this check.
+
=item C<strict subs>
This disables the poetry optimization, generating a compile-time error if
End of patch |
Migrated from rt.perl.org#1841 (status was 'resolved')
Searchable as RT1841$
The text was updated successfully, but these errors were encountered: