On Tue, Jul 24, 2001 at 08:43:01AM -0400, Sparkle Williams wrote:
> I wrote a program running off a Windows NT platform and was trying to 
> convert it to a UNIX platform. My problem comes with my syntax. I keep 
> recieving an error message and was hoping someone could help me fix the 
> syntax so that the script would run.


Assuming the code you showed us isn't mis-typed on your part:

>    use lib 'LWP::Simple'

This is almost certainly wrong; use lib is for adding directories to your
library search path, it's not for including library code.  You also forgot a
semicolon.


>         use LWP::Simple

You forgot another semicolon.


>         $doc = get ($url)

Finally, you forgot another semicolon.


> In the brief excerpt above the problem occurs with "get ($".  Wherever there 
> is an area in the script where there is a value beginning with "($" I get an 
> error. How do I fix that?

Perl has no issue with 'get ($url)', you're very likely seeing a syntax
error caused by some other code, or, as suggested by others, are facing a
problem with the shebang line.

It may be that one machine has an older version of Perl.  You should check
with perl -V.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to