Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > What is the syntax error

Reply
Thread Tools

What is the syntax error

 
 
Michael Shaw
Guest
Posts: n/a
 
      01-23-2007
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?


 
Reply With Quote
 
 
 
 
Joe Smith
Guest
Posts: n/a
 
      01-23-2007
Michael Shaw wrote:
> use "Text:arseWords.pm";


That's supposed to be

use Text:arseWords;

-Joe
 
Reply With Quote
 
 
 
 
Michael Shaw
Guest
Posts: n/a
 
      01-24-2007
Joe,

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

Michael


"Joe Smith" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Michael Shaw wrote:
>> use "Text:arseWords.pm";

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



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Syntax error? What syntax error? Assignment fo default values? Mark Richards Perl Misc 3 11-18-2007 05:01 PM
Syntax bug, in 1.8.5? return not (some expr) <-- syntax error vsreturn (not (some expr)) <-- fine Good Night Moon Ruby 9 07-25-2007 04:51 PM
[ANN] SqlStatement 1.0.0 - hide the syntax of SQL behind familiarruby syntax Ken Bloom Ruby 3 10-09-2006 06:46 PM
Syntax highligth with textile: Syntax+RedCloth ? gabriele renzi Ruby 2 12-31-2005 02:44 AM
Complier error!! error C2059: syntax error : '(' Balaji C++ 3 12-03-2004 11:19 PM



Advertisments