develooper Front page | perl.perl5.porters | Postings from October 2014

[perl #123057] Bleadperl v5.21.4-409-gef7999f breaks UNIFIEDSW/Finance-BankVal-UK-0.4.tar.gz

Thread Next
From:
James E Keenan via RT
Date:
October 27, 2014 01:43
Subject:
[perl #123057] Bleadperl v5.21.4-409-gef7999f breaks UNIFIEDSW/Finance-BankVal-UK-0.4.tar.gz
Message ID:
rt-4.0.18-15071-1414374219-1461.123057-15-0@perl.org
On Sun Oct 26 08:13:14 2014, sprout wrote:
> On Sun Oct 26 07:24:32 2014, jkeenan wrote:
> > Confirmed.  ef7999f causes a compilation failure in a situation where
> > 5.20.1 does not.
> >
> > I have translated the code in the CPAN distribution which suffered
> > the
> > failure into a patch to t/op/chop.t.  blead will experience a syntax
> > error and compilation failure when you try to run that test file.
> 
> Thank you for the test case.  You’ve saved me time.  It turns out this
> is an old bug in the optimisation, which I have ended up extending to
> more cases:
> 
> $ perl5.8.7 -e '(@a = split//,$_)=1' # fine
> $ perl5.8.7 -e '(@a = split//,$x)=1'
> Can't modify split in list assignment at -e line 1, at EOF
> Execution of -e aborted due to compilation errors.
> 
> Judging by the source code, it probably goes back to perl 3.0.

As of commit e4e95921cd0fd085a5edf35ae358cd213529e55a, this appears to be resolved.

#####
$ /home/jkeenan/gitwork/perl/perl -v |head -2 | tail -1
This is perl 5, version 21, subversion 6 (v5.21.6 (v5.21.5-117-ge4e9592)) built for x86_64-linux

$ /home/jkeenan/gitwork/perl/perl -I/home/jkeenan/gitwork/perl/lib -Iblib/lib t/Finance-BankVal-UK.t 
\C is deprecated in regex; marked by <-- HERE in m/(\C <-- HERE )/ at /home/jkeenan/perl5/lib/perl5/URI/Escape.pm line 205.
1..7
ok 1 - use Finance::BankVal::UK;
ok 2 - format validation
ok 3 - sort code validation
ok 4 - account validation
ok 5 - user id validation
ok 6 - PIN validation
ok 7 - PIN validation
#####
-- 
James E Keenan (jkeenan@cpan.org)

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

Thread Next


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