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
package 'vars' not registered for warnings #1682
Comments
From kompas@kompas.usr.onet.plCreated by kompas@onet.plTrying to declare globals with "vars" pragma, when one make very common perl -le 'use vars qw($aaa, $bbb)' one will get very cryptic message: package 'vars' not registered for warnings at -e line 1 Actually, this should do nothing special (just remove comma from "$aaa,"). Fixup is very simple (although I'm not sure this is The Right Way, I just Inline Patch--- vars.pm.old Fri Mar 31 22:57:29 2000
+++ vars.pm Fri Mar 31 22:57:36 2000
@@ -8,7 +8,7 @@
# if Carp hasn't been loaded in earlier compile time. :-(
# We'll let those bugs get found on the development track.
require Carp if $] < 5.00450;
-use warnings::register();
+use warnings::register;
sub import {
Configured by oa at Fri Mar 31 08:52:06 MET DST 2000. Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration: Locally applied patches: --- --- This is a bug report for perl from kompas@onet.pl, ----------------------------------------------------------------- Trying to declare globals with "vars" pragma, when one make very common perl -le 'use vars qw($aaa, $bbb)' one will get very cryptic message: package 'vars' not registered for warnings at -e line 1 Actually, this should do nothing special (just remove comma from "$aaa,"). Fixup is very simple (although I'm not sure this is The Right Way, I just Inline Patch--- vars.pm.old Fri Mar 31 22:57:29 2000
+++ vars.pm Fri Mar 31 22:57:36 2000
@@ -8,7 +8,7 @@
# if Carp hasn't been loaded in earlier compile time. :-(
# We'll let those bugs get found on the development track.
require Carp if $] < 5.00450;
-use warnings::register();
+use warnings::register;
sub import { Perl Info
|
From The RT System itselfConfirmed in 5.6.0 -- MJD |
From @floatingatoll[kompas@kompas.usr.onet.pl - Fri Mar 31 05:03:41 2000]:
As of the 5.8/5.9 development branch, this has been fixed. Thanks for the bug - R.
|
@floatingatoll - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#2928 (status was 'resolved')
Searchable as RT2928$
The text was updated successfully, but these errors were encountered: