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 ]

Shlomi Fish (918)

Shlomi Fish
AOL IM: ShlomiFish (Add Buddy, Send Message)
Yahoo! ID: shlomif2 (Add User, Send Message)

I'm a hacker of Perl, C, Shell, and occasionally other languages. Perl is my favourite language by far. I'm a member of the Israeli Perl Mongers, and contribute to and advocate open-source technologies. Technorati Profile []

Journal of Shlomi Fish (918)

Friday June 15, 2007
02:40 AM

Another perl5 Bug

[ #33525 ]

I found another perl5 bug by accident. It can be reproduced with perl-5.8.8 like this:

$ perl -le ' $a = "Hello"; for ("$a") { lc $_; print }'

It happens only if a variable is given within the quotes.

I discovered it by writing a support script to convert a standard Module::Build distribution to Test-Run-Builder. In this context, I needed to add another entry to the MANIFEST file, and used sort { lc($a) cmp lc($b) } on the existing lines and an extra line placed in quotes. And then when I ran svn diff I found out it was in lowercase.

On a slightly different note, I also spent a lot of time isolating a hard-to-isolate vim bug on Mandriva. It turns out to have been an incompatibility between the vim source and the compilation flags, that surfaces only when using the vcscommands.

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.