in reply to Interesting: a genuine Perl-bug

Could not it be something like this case? Long story short - it was problematic source filter with Switch module.

-- Roman