This post originated from an RSS feed registered with Ruby Buzz
by Daniel Berger.
Original Post: Cryptic error messages
Feed Title: Testing 1,2,3...
Feed URL: http://djberg96.livejournal.com/data/rss
Feed Description: A blog on Ruby and other stuff.
This has to be my favorite Perl error of all time:
sh: -c: line 2: unexpected EOF while looking for matching `''
sh: -c: line 3: syntax error: unexpected end of file
So cryptic, with oh, so little help from Google. Never mind that the script passes a "perl -c" check just fine. I haven't been able to narrow this down, but I *think* it's being caused by DBI somehow. The other possibility is some sort of stray, invisible character causing the interpreter to choke when it actually runs.
It's truly bizarre, considering I have a separate script that is *identical* to the one failing, with the only difference being some embedding SQL. I spent several hours on this one yesterday, only to simply copy/paste the working file over the non-working file, then manually retype the appropriate SQL in.
Now it works, with no idea why it was ever failing in the first place.
Update: It was choking on a =begin/=end block. Using standard '#' to comment out the block of code worked. Of course, this begs the question of how it was working before, but whatever.