The shebang line and everything are correct for the script.  The script runs 
fine when the lines containing "get($ " are commented out. Therefore I'm 
assuming that the system is reading that combination of ($ as something 
other than what it should. Any ideas of how I could fix that?


>From: "Will Crain" <[EMAIL PROTECTED]>
>To: "Sparkle Williams" <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>Subject: RE: Unix syntax
>Date: Tue, 24 Jul 2001 10:51:15 -0500
>
>Without seeing the complete script, I can only venture to guess.  You 
>stated
>you were porting a script from WinNT to a Unix environment.  Be sure you
>have properly included a "shebang" line at the beginning of your script
>like this:
>
>#!/usr/bin/perl -w
>
>
>where /usr/bin/perl is the path to your installed perl interpreter.  Within
>the WinNT environment, the line is not required and perl will process the
>script without it.  In Unix without the designation, the shell is 
>attempting
>to process the file and the $ designates a command line, not a scalar 
>variable.
>
>Hope I'm not totally off base and this helps,
>
>Will
>
>-- Original Message --
>
> >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.
> >
> >   use lib 'LWP::Simple'
> >
> >        use LWP::Simple
> >
> >        $doc = get ($url)
> >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?
> >
> >
> >_________________________________________________________________
> >Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp
> >
> >
> >--
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
>
>Visit iWon.com - the Internet's largest guaranteed cash giveaway! Click
>here now for your "Thank You" gift:
>http://www.iwon.com/giftcenter/0,2612,,00.html?t_id=20157
>
>
>
>
>--
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


_________________________________________________________________
Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp


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

Reply via email to