in reply to Achieving something similar to <<EOQ

You need to read that text into a variable and pass that variable to the function. I suggest reading the documentation for open, readline, and possibly chomp.

  • Comment on Re: Achieving something similar to <<EOQ