in reply to inserting a formatted text file into a perl script.
i know this is a bad approach and im sure it doesn't work.
Why are you sure? That would work, although there are other options. I would use a here document. Read about it in perlop.
print <<"EOF"; insert some text here this text can contain tabs foo bar baz EOF
--
David Serrano
|
|---|