What is the syntax error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael Shaw

    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:\\Progra m Files\\perl\\li b";
    use "Text::ParseWor ds.pm";
    print "\@INC = @INC\n";

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

    What is the causing the syntax error?


  • Joe Smith

    #2
    Re: What is the syntax error

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

    use Text::ParseWord s;

    -Joe

    Comment

    • Michael Shaw

      #3
      Re: What is the syntax error

      Joe,

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

      Michael


      "Joe Smith" <joe@inwap.comw rote in message
      news:3K-dnZMY1-YRTijYnZ2dnUVZ_ vDinZ2d@comcast .com...
      Michael Shaw wrote:
      > use "Text::ParseWor ds.pm";
      >
      That's supposed to be
      >
      use Text::ParseWord s;
      >
      -Joe

      Comment

      Working...