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
possible minor bug in constant.pm #824
Comments
From mike808@mo.netThe relevant section of code from constant.pm v1.00 from perl 5.005_03: sub import { The RE used to validate names is broken for several perfectly use constant qw( _MYCONSTANT => 4 ); # busted I propose an improved RE as follows: unless I added in preventing A and B being used as constants, as I don't like the The background on how I found this problem is that I use a derived i.e. 'use MyConstant TEN => 10;' also does an extra '$TEN = 10;' But, that's *my* version of constant.pm, and I found it handy, and Michael |
From [Unknown Contact. See original ticket]On Sat, 6 Nov 1999, Michael King wrote:
Not broken; intentional. (Although I can't recall at the moment why in the Constant names must begin with a letter. Names beginning with an underbar are implicitly "reserved for future
You seem to be confused; sort doesn't use $A and $B.
Nope. I merely wanted to reserve names starting with an underscore, so Cheers! -- |
Migrated from rt.perl.org#1752 (status was 'resolved')
Searchable as RT1752$
The text was updated successfully, but these errors were encountered: