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
Localized */ isnt observed by magic IO operator #7712
Comments
From @demerphqCreated by @demerphqThe following code does not work as expected: perl -le "$/='foo'; local */; print 'Got:',$/; while(<>) { chomp; print; }" Even though the "Got:" output will be correct <> will still think that $/ is Ive tested this on 5.6.1 and 5.8.4 and both fail. Perl Info
|
From @demerphq
And another glob related oddity: perl -e "use strict; use warnings; our $foo; local *foo=':'; print $foo" Outputs a newline followed by a dash on my system (Win32). Even though the Yves |
From @demerphq
Right. Thanks. What about the other part? That is a bug eh? Yves |
From perl5-porters@perl.orgOn Thu, 16 Dec 2004 18:59:02 -0000, "Orton, Yves" wrote (in part): yo> And another glob related oddity: yo> perl -e "use strict; use warnings; our $foo; local *foo=':'; print yo> Outputs a newline followed by a dash on my system (Win32). As it should, since the glob-aliasing made it equivalent to this: # perl -e 'print $:' leggy:7168> mperl -MDevel::Peek=Dump -e 'Dump \$:' Note that "PV =" of space+newline+hyphen. --s. |
The RT System itself - Status changed from 'new' to 'open' |
@demerphq Is there an action here? |
Migrated from rt.perl.org#33076 (status was 'open')
Searchable as RT33076$
The text was updated successfully, but these errors were encountered: