in reply to pattern match against in-memory file causes odd behavior
Your example also works as expected (prints "yes") for perl 5.14.1 brewed on Mac OS X. Maybe Devel::Peek's Dump function would show some abnormality with your scalar?