Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

pdcawley (485)

pdcawley
  (email not shown publicly)
http://www.bofh.org.uk/
AOL IM: pdcawley (Add Buddy, Send Message)

Journal of pdcawley (485)

Wednesday July 04, 2001
05:36 PM

Bugs in Perl

[ #374 ]

Quick, what does

$ perl -wle 'sub A::a{1}; @B::ISA='A'; sub B::a{$_[0]->SUPER::a}; print B->a;'

do? I'm betting you didn't expect it to do:

Can't locate object method "a" via package "main" at -e line 1.

Hmm...

I think I found a bug. And if it's not classed as a bug then it damned well should be, since it makes it next to impossible to do some neat stuff (without implementing a SUPER.pm or something of that ilk).

Time to patch the appropriate test file in the perl source and submit my first patch to p5p.