What is the syntax error

Discussion in 'Perl' started by Michael Shaw, Jan 23, 2007.

  1. Michael Shaw

    Michael Shaw Guest

    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?
     
    Michael Shaw, Jan 23, 2007
    #1
    1. Advertising

  2. Michael Shaw

    Joe Smith Guest

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


    That's supposed to be

    use Text::parseWords;

    -Joe
     
    Joe Smith, Jan 23, 2007
    #2
    1. Advertising

  3. Michael Shaw

    Michael Shaw Guest

    Joe,

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

    Michael


    "Joe Smith" <> wrote in message
    news:...
    > Michael Shaw wrote:
    >> use "Text::parseWords.pm";

    >
    > That's supposed to be
    >
    > use Text::parseWords;
    >
    > -Joe
     
    Michael Shaw, Jan 24, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Balaji
    Replies:
    3
    Views:
    10,130
  2. gabriele renzi
    Replies:
    2
    Views:
    214
    gabriele renzi
    Dec 31, 2005
  3. Ken Bloom
    Replies:
    3
    Views:
    220
  4. Good Night Moon
    Replies:
    9
    Views:
    285
    Rick DeNatale
    Jul 25, 2007
  5. Mark Richards
    Replies:
    3
    Views:
    320
    Tad McClellan
    Nov 18, 2007
Loading...

Share This Page