in reply to inserting a formatted text file into a perl script.

I wouldn't necessarily call that a bad approach. I'd use a heredoc myself.

Though if you're wickedly opposed to the idea, you could always append it at the bottom on your code under a __DATA__ token and just dump out of the <DATA> filehandle. Ugly, but effective :)

  • Comment on Re: inserting a formatted text file into a perl script.