develooper Front page | perl.perl5.porters | Postings from August 2019

[perl #134349] Filter::Simple executable_no_comments filters don'twork (fatal error)

Thread Previous
From:
James E Keenan via RT
Date:
August 11, 2019 18:41
Subject:
[perl #134349] Filter::Simple executable_no_comments filters don'twork (fatal error)
Message ID:
rt-4.0.24-30461-1565548878-1624.134349-15-0@perl.org
On Sun, 11 Aug 2019 03:55:53 GMT, Jim@balter.name wrote:
> This is a bug report for perl from jim@balter.name,
> generated with the help of perlbug 1.40 running under perl 5.26.2.
> 
> 
> -----------------------------------------------------------------
> [Please describe your issue here]
> 
> Filter::Simple version 0.94 (the latest) does not work with
> 'executable_no_comments' filters, producing
> 
> Can't use an undefined value as a subroutine reference at
> /usr/share/perl5/5.26/Filter/Simple.pm line 132.
> 
> because there's no such type in %selector_for and it doesn't match
> /^code/
> (line 120). I suspect that it would work if that line were changed to
> 
> if ($type =~ /^(?:code|executable)/) {
> 
> However, the documentation says that only code and code_no_comments
> filters
> do the blanking conditioned by that code. Since I can get away with
> using
> an 'executable' filter, I haven't delved further.
> 
> Also:
> 
> In my attempts to write a filter, I discovered that errors and
> warnings
> issued from a filter sub are never seen, instead getting a "no
> quotelike
> operator at offset ..." message. It turns out that the fix is to
> localize
> $@. While I did this in my sub, it's a common problem and it would be
> helpful for Filter::Simple to do the localization around the
> invocation of
> the filter sub.
> 
> This has perhaps been fixed in 5.28.0 ...
> https://rt.perl.org/Public/Bug/Display.html?id=38920
> 
> but a lot of people are running earlier versions and Filter::Simple
> could
> help.
> 
> 

Filter-Simple was upgraded to version 0.95 within the Perl 5 core distribution in September 2017.  However, it appears that no new CPAN release was made; CPAN is stuck at version 0.94.

Bcc-ing some people who might be able to help with a new CPAN release.

Thank you very much.

-- 
James E Keenan (jkeenan@cpan.org)

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=134349

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About