in reply to [SOLVEDish] Please help me with this Heredoc

Use diagnostics. From perldiag
If you're getting this error from a here-document, you may have included unseen whitespace before or after your closing tag or there may not be a linebreak after it. A good programmer's editor will have a way to help you find these characters (or lack of characters).

Replies are listed 'Best First'.
Re^2: Please help me with this Heredoc
by Je55eah (Novice) on Jun 18, 2012 at 03:04 UTC

    I don't know how, but it is working now. Since I am just getting started with Perl I am satisfied unless it breaks again. The next paragraph is probably useless to you. Thanks perldiag and andrew.

    I played around with splain and I saw some strange stuff where the first characters of the second line were being replaced with the heredoc delimiter string. I was about to post some copies of those results on here, so I changed the code back to what I posted earlier for the sake of consistency. Now it is magically working. Padre did crash when I was doing this, so I think that Padre somehow corrupted the file (??) and the corruption was invisible to me but it was manifesting in the results from padre's run button and the command line execution.