in reply to Sticking IO::Handle on top of a scalar.

Pre-5.8.0, use IO::Scalar for this. Starting with 5.8.0, you can say just open my $fh, "<", \$string