Given a file F as below... File::Slurp::write_file("test.data",qq<<'END'); Here is data that this function wants END Results in # test continues here