Connecting Tech Pros Worldwide Forums | Help | Site Map

What is the syntax error

Michael Shaw
Guest
 
Posts: n/a
#1: Jan 23 '07
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?



Joe Smith
Guest
 
Posts: n/a
#2: Jan 23 '07

re: What is the syntax error


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

use Text::ParseWords;

-Joe
Michael Shaw
Guest
 
Posts: n/a
#3: Jan 24 '07

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