Closed p5pRT closed 21 years ago
With bleadperl:
$ perl -MO=Lint -e '$foo' -e syntax OK
but:
$ perl -M0=Lint -e '@foo' Can't call method "name" on an undefined value at /home/scog/bin/test/perl/lib/5.7.2/i686-linux/B/Lint.pm line 188. CHECK failed--call queue aborted.
$ perl -M0=Lint -e '%foo' Can't call method "name" on an undefined value at /home/scog/bin/test/perl/lib/5.7.2/i686-linux/B/Lint.pm line 188. CHECK failed--call queue aborted.
All three of these work with 5.6.0; I don't have a copy of 5.6.1 handy to test them against.
This seems to be the same bug as [ID 20010823.020]
On 2002.02.20 00:18 Simon Glover wrote:
With bleadperl:
$ perl -MO=Lint -e '$foo' -e syntax OK
but:
$ perl -M0=Lint -e '@foo' Can't call method "name" on an undefined value at /home/scog/bin/test/perl/lib/5.7.2/i686-linux/B/Lint.pm line 188. CHECK failed--call queue aborted.
$ perl -M0=Lint -e '%foo' Can't call method "name" on an undefined value at /home/scog/bin/test/perl/lib/5.7.2/i686-linux/B/Lint.pm line 188. CHECK failed--call queue aborted.
Apparently this bug goes away if you replace every occurence of walkoptree by walkoptree_slow in B/Lint.pm.
But\, as (1) there's no regression test (yet) for B::Lint\, and (2) I've no knowledge about the history of changes in B.pm and the B::* modules\, I won't send a patch until someone that knows better can find where and why B::Lint has broken.
All three of these work with 5.6.0; I don't have a copy of 5.6.1 handy to test them against.
On Wed\, Feb 20\, 2002 at 11:37:49PM +0100\, Rafael Garcia-Suarez wrote:
On 2002.02.20 00:18 Simon Glover wrote:
With bleadperl:
$ perl -MO=Lint -e '$foo' -e syntax OK
but:
$ perl -M0=Lint -e '@foo' Can't call method "name" on an undefined value at /home/scog/bin/test/perl/lib/5.7.2/i686-linux/B/Lint.pm line 188. CHECK failed--call queue aborted.
$ perl -M0=Lint -e '%foo' Can't call method "name" on an undefined value at /home/scog/bin/test/perl/lib/5.7.2/i686-linux/B/Lint.pm line 188. CHECK failed--call queue aborted.
Apparently this bug goes away if you replace every occurence of walkoptree by walkoptree_slow in B/Lint.pm.
walkoptree_slow implements something that walkoptree doesn't and I forget what\, but I've hit this before. I'll look at it tonite.
But\, as (1) there's no regression test (yet) for B::Lint\, and (2) I've no knowledge about the history of changes in B.pm and the B::* modules\, I won't send a patch until someone that knows better can find where and why B::Lint has broken.
All three of these work with 5.6.0; I don't have a copy of 5.6.1 handy to test them against.
--
Michael G. Schwern \schwern@​pobox\.com http://www.pobox.com/~schwern/ Perl Quality Assurance \perl\-qa@​perl\.org Kwalitee Is Job One My feet hurt... with destiny! http://sluggy.com/d/010204.html
scog@roe.ac.uk - Status changed from 'open' to 'resolved'
Migrated from rt.perl.org#8595 (status was 'resolved')
Searchable as RT8595$