I was thinking if RUBY had Here documents, like perl does, that'd screw things up too... which doing a quick wiki search, it appears Ruby supports Here docs.
--Ray
update: of course, a regex with a # in it would also screw it up, which I imagine ruby supports too. So yeah... not a perfect solution.