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
Filter::Simple error messages getting mangled inside require #8405
Comments
From @nwc10Created by @nwc10Not sure if this is a Filter::Simple bug, or a more general core bug. package Shout; use Filter::Simple; FILTER_ONLY (string => sub { $_ =~ tr/a-z/A-Z/; }); 1; then if I try to feed a perl script through it that it converts to erroneous $ cat filter.pl print "Oi!\n"; which is what I expect. However, if that same code is in a module: $ cat Filter.pm print "Oi!\n"; 1; It all gets mangled. The mangling seems wrong. Nicholas Clark Perl Info
|
From @cpansproutOn Fri Apr 14 12:53:25 2006, nicholas wrote:
Replace that \n in Filter.pm with \N and change Shout.pm to #__BEGIN__ use Filter::Util::Call; sub import { And you get this: aaaaaCompilation failed in require. On encountering syntax errors, perl appends the messages to $@, but the |
The RT System itself - Status changed from 'new' to 'open' |
From zefram@fysh.orgFather Chrysostomos wrote:
The core should localise it, to match the treatment of BEGIN blocks. It's tricky to test. Filter::Util::Call is a cpan/ distro with its own -zefram |
@cpansprout - Status changed from 'open' to 'pending release' |
From @khwilliamsonThank you for filing this report. You have helped make Perl better. With the release yesterday of Perl 5.28.0, this and 185 other issues have been Perl 5.28.0 may be downloaded via: If you find that the problem persists, feel free to reopen this ticket. |
@khwilliamson - Status changed from 'pending release' to 'resolved' |
Migrated from rt.perl.org#38920 (status was 'resolved')
Searchable as RT38920$
The text was updated successfully, but these errors were encountered: