-
Notifications
You must be signed in to change notification settings - Fork 578
Surprised that $^N action works if string is global, fails if string is local #8170
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
Comments
From [email protected]Created by [email protected]Surprised that $^N does not work on local (my) variable in a sub but #START OF CODE sub findABC if ($txt =~ # END OF CODE # EXAMPLE OUTPUT: after regex $foundstr = 'abc' Case 2) with "my $foundstr;" statement added to sub: after regex $foundstr = 'abc' after regex $foundstr = '' # END OF EXAMPLE OUTPUT Perl Info
|
From [email protected]On Oct 26, via RT and UNEXPECTED_DATA_AFTERdevanney@prodigy.netsaid:
It's not that $^N doesn't work. It's that (?{
Don't use printf() unless you mean "print a formatted string". -- |
The RT System itself - Status changed from 'new' to 'open' |
From [email protected]thanks very much... "japhy@perlmonk.org via RT" wrote:
|
From @cpansproutThis has been fixed by the commits leading up to eb58a7e. |
@cpansprout - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#37543 (status was 'resolved')
Searchable as RT37543$
The text was updated successfully, but these errors were encountered: