Slash Boxes
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 ]

Ovid (2709)

  (email not shown publicly)
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)

Thursday October 23, 2003
06:53 PM

Another subtle bug

[ #15359 ]

The following bug really irritated me when I found it. It's found repeatedly throughout our test suite because someone appeared to be cutting and pasting code.

    [ map { $_->title_no } sort { $a->title_no < $b->title_no } $mf->titles ],
    [ $matrix->title_no, $spider->title_no ]

Now what I want to know is why this passed under 5.6.1? (Hint: if you don't see the bug right away, consider that the test is failing because the elements in the first array ref are getting returned in the wrong order).

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • After a meeting of the Silicon Valley Patterns group this week, we stood around speculating about how hard it would be to rig Eclipse (an open source editor that's big in the Java world) to ring a buzzer whenever someone copied a large block of code from one file, and pasted it into another. Or to trigger a webcam, to record the offender's picture for the copy-and-paste hall of shame. Or to count the number of times a cut or copy got pasted, and send off an email to the QA folks, warning them of where to look.
    • I'm drooling for this already. When Perl6 comes out, I expect that we'll be able to have rich IDEs like so many other languages. Then we can implement this for ourselves. And maybe have the editor automatically shut down if use strict isn't the second line typed or if taint checking isn't used in a program when "use CGI" is present or ... :)