Skip Menu |

This queue is for tickets about the Babble CPAN distribution.

Report information
The Basics
Id: 132725
Status: new
Priority: 0/
Queue: Babble

People
Owner: Nobody in particular
Requestors: djerius [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.090007
Fixed in: (no value)



Subject: several warnings and unoptimized translation of non-postfixderef array expression ($exe[0]) by PostfixDeref
This array element expression: $exe[0] results in a number of warnings (which can be very noisy in code which uses that a lot). The translated expression is also a bit costly (a map). % echo '$exe[0]' | perl -MBabble::Filter=::PostfixDeref -0777 -pe babble Use of uninitialized value $rest in string eq at /.../lib/site_perl/5.28.1/Babble/Plugin/PostfixDeref.pm line 62, <> chunk 1. Use of uninitialized value $sigil in concatenation (.) or string at /.../lib/site_perl/5.28.1/Babble/Plugin/PostfixDeref.pm line 63, <> chunk 1. Use of uninitialized value $rest in concatenation (.) or string at /.../lib/site_perl/5.28.1/Babble/Plugin/PostfixDeref.pm line 63, <> chunk 1. (map {$_}, $exe) Thanks, Diab
Subject: several warnings and broken translation of non-postfixderef array expression ($exe[0]) by PostfixDeref
On Thu May 28 14:52:38 2020, DJERIUS wrote: Show quoted text
> This array element expression: > > $exe[0] > > results in a number of warnings (which can be very noisy in code which > uses that a lot). > > The translated expression is also a bit costly (a map). > > > % echo '$exe[0]' | perl -MBabble::Filter=::PostfixDeref -0777 -pe > babble > Use of > uninitialized value $rest in string eq at > /.../lib/site_perl/5.28.1/Babble/Plugin/PostfixDeref.pm line 62, <> > chunk 1. > Use of uninitialized value > $sigil in concatenation (.) or string at > /.../lib/site_perl/5.28.1/Babble/Plugin/PostfixDeref.pm line 63, <> > chunk 1. > Use of uninitialized value > $rest in concatenation (.) or string at > /.../lib/site_perl/5.28.1/Babble/Plugin/PostfixDeref.pm line 63, <> > chunk 1. > (map {$_}, $exe) > > > Thanks, > Diab
Oops, that's actually quite broken. I mistook the $ for a @. Updated subject to reflect that.
On Thu May 28 16:10:02 2020, DJERIUS wrote: Show quoted text
> On Thu May 28 14:52:38 2020, DJERIUS wrote:
> > This array element expression: > > > > $exe[0] > > > > results in a number of warnings (which can be very noisy in code > > which > > uses that a lot). > > > > The translated expression is also a bit costly (a map). > > > > > > % echo '$exe[0]' | perl -MBabble::Filter=::PostfixDeref -0777 -pe > > babble > > Use of > > uninitialized value $rest in string eq at > > /.../lib/site_perl/5.28.1/Babble/Plugin/PostfixDeref.pm line 62, <> > > chunk 1. > > Use of uninitialized value > > $sigil in concatenation (.) or string at > > /.../lib/site_perl/5.28.1/Babble/Plugin/PostfixDeref.pm line 63, <> > > chunk 1. > > Use of uninitialized value > > $rest in concatenation (.) or string at > > /.../lib/site_perl/5.28.1/Babble/Plugin/PostfixDeref.pm line 63, <> > > chunk 1. > > (map {$_}, $exe) > > > > > > Thanks, > > Diab
> > > Oops, that's actually quite broken. I mistook the $ for a @. Updated > subject to reflect that.
see https://github.com/shadow-dot-cat/Babble/pull/3