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
require has the num/str bug #11802
Comments
From @cpansprout$ perl -le '$x = "6"; require $x' $ perl -le '$x = "6"; 0+$x; require $x' $ perl -le '$x = "34 cabbages"; 0+$x; require $x' $ perl5.12.4 -le '$x = "34 cabbages"; 0+$x; require $x' In that last case it can’t decide whether to use the numeric or string representation. I was actually surprised to find that require ${\6} works the way it does. I thought that require NUMBER was a syntactic special case like require BEARWORD. Would it break anything to make it such a special case? Flags: Site configuration information for perl 5.15.5: Configured by sprout at Sat Nov 26 11:40:22 PST 2011. Summary of my perl5 (revision 5 version 15 subversion 5) configuration: Locally applied patches: @INC for perl 5.15.5: Environment for perl 5.15.5: |
Migrated from rt.perl.org#105926 (status was 'new')
Searchable as RT105926$
The text was updated successfully, but these errors were encountered: