Running this code in Perl:
use LWP::Simple;
my $url = "http://mywebsite.com/foo.ini";
my $page = get($url);
produced this error:
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file
The error message in question refers to unbalanced quotes, but there
were no unbalanced quotes in my code.
This error was driving me crazy until I tried to see what was happening
using curl. This was more helpful:
curl http://mywebsite.com/foo.ini > foo.ini
yielded a 404 error: the page was missing.
OK, that explains the unexpected EOF. But why the "mismatched quote"
error in Perl? Is there any way to get more helpful error messages, i.e.
"missing page"?
--Kevin
--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/