Connecting Tech Pros Worldwide Help | Site Map

What is the syntax error

  #1  
Old January 23rd, 2007, 03:45 AM
Michael Shaw
Guest
 
Posts: n/a
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::ParseWords.pm";
print "\@INC = @INC\n";

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

What is the causing the syntax error?


  #2  
Old January 23rd, 2007, 09:25 AM
Joe Smith
Guest
 
Posts: n/a

re: What is the syntax error


Michael Shaw wrote:
Quote:
use "Text::ParseWords.pm";
That's supposed to be

use Text::ParseWords;

-Joe
  #3  
Old January 24th, 2007, 01:55 AM
Michael Shaw
Guest
 
Posts: n/a

re: What is the syntax error


Joe,

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

Michael


"Joe Smith" <joe@inwap.comwrote in message
news:3K-dnZMY1-YRTijYnZ2dnUVZ_vDinZ2d@comcast.com...
Quote:
Michael Shaw wrote:
Quote:
> use "Text::ParseWords.pm";
>
That's supposed to be
>
use Text::ParseWords;
>
-Joe

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
error C2061: syntax error : identifier muby answers 6 January 9th, 2009 11:41 AM
typedef Syntax Error Mike Copeland answers 14 November 4th, 2008 11:55 AM
java Syntax error in jsp nickyeng answers 4 October 3rd, 2007 07:42 AM
error: syntax error before '*' token Manuel answers 3 January 12th, 2006 03:15 PM
Syntax error about daAngio.Fill(dsAngio, "AngioInfo") david answers 2 January 5th, 2006 08:25 PM