Stories
Slash Boxes
Comments

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

Ovid
  (email not shown publicly)
http://publius-ovidius.livejournal.com/
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Monday February 25, 2008
11:23 AM

Find the bug!

[ #35751 ]

I encountered a delightful bug today. I'll make it easy for you and not try to obfuscate it. It's a potentially fatal error in this code, not the calling code.

sub import {
    my $class = shift;
    while ( @_ ) {
        $_ = shift;
        # do stuff
    }
}

That's bad code, but it took me a while to see it. If you've read some of my past complaints about the type of code causing problems in our BBC code base, that's a hint.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.