in reply to Treating a scalar as an "input file"

my $fh = IO::Scalar->new(\$content);

See IO::Scalar.

-- Hofmator