I want to write a test that loads .mhtml in a .t file so I can test the embedded perl. The issue I'm having is that having loaded the source with File::Slurp, running $interp->exec($source) has HTML::Mason::Interp::load() trying to use the .mhtml as a filename which is suboptimal.
Is there are better way to this?
Hard to be much help without a lot more information - like a runnable program that exhibits the problem - but have you looked at HTML::Mason::Tests?
Oh, and don't use File::Slurp. It's very broken.