Go Back   Velocity Reviews > Newsgroups > PERL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

PERL - What is the syntax error

 
Thread Tools Search this Thread
Old 01-23-2007, 03:40 AM   #1
Default What is the syntax error


Environment:
WinXP Pro
ActivePerl
Install Dir: C:\Program Files\perl
Trying to use C:\Program Files\perl\lib\Text\ParseWords.pm

Command Line:
perl -w try.pl < ServerFile

Code:
use lib "C:\\Program Files\\perl\\lib";
use "Text:arseWords.pm";
print "\@INC = @INC\n";

Generated error message:
syntax error at try.pl line 2, near "use "Text:arseWords.pm""
Execution of try.pl aborted due to compilation errors.

What is the causing the syntax error?




Michael Shaw
  Reply With Quote
Old 01-23-2007, 09:21 AM   #2
Joe Smith
 
Posts: n/a
Default Re: What is the syntax error

Michael Shaw wrote:
> use "Text:arseWords.pm";


That's supposed to be

use Text:arseWords;

-Joe
  Reply With Quote
Old 01-24-2007, 01:50 AM   #3
Michael Shaw
 
Posts: n/a
Default Re: What is the syntax error

Joe,

Thanks for the come back. It worked fine. Thanks.

Michael


"Joe Smith" <> wrote in message
news:3K-dnZMY1-...
> Michael Shaw wrote:
>> use "Text:arseWords.pm";

>
> That's supposed to be
>
> use Text:arseWords;
>
> -Joe



  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump