Did you cut-and-paste that script when you posted it above? When I run it, it works fine. It is a 5 line script, with the last statement beginning on line 5, and continued onto line 6; errors in the part of the statement on line 6 would be reported as line 5. If you mis-keyed the last line with a semi-colon in place of the comma, then you would get the exact error you described.
# Bad semi-colon here..............* print "Content-type: text/html\n\n"; $myDocument;
In reply to Re: Re: replacement for LWP::Simple ?
by Util
in thread replacement for LWP::Simple ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |