bulk88 has asked for the wisdom of the Perl Monks concerning the following question:

I tried to run my first perl program but there are so many errors.
Module Hello Sub Main() MsgBox("Hello, World!") End Sub End Module
Bareword found where operator expected at helloworld.pl line 3, near " +) MsgBox" (Missing operator before MsgBox?) Bareword found where operator expected at helloworld.pl line 4, near " +) End" (Missing operator before End?) syntax error at helloworld.pl line 3, near ") MsgBox" Execution of helloworld.pl aborted due to compilation errors.
Please help. Thank you good sirs.

Replies are listed 'Best First'.
Re: many errors, please help
by ambrus (Abbot) on Apr 01, 2012 at 07:51 UTC

    The error messages mean you are trying to run the perl program with a Visual Basic interpreter. See My computer broked down after perl install for some useful hints on how to install a perl interpreter to your machine.

Re: many errors, please help
by Anonymous Monk on Apr 01, 2012 at 03:26 UTC

    That is not perl, still not april here

      My Computer Studies Professor assigned this code for home work for Perl 101 class. Task is to run it, describe what it did. I need assigned to be done by tormorrow. But I get sooo much errors when I run it from perl.

        And?

Re: many errors, please help
by CountZero (Bishop) on Apr 01, 2012 at 19:09 UTC
    You will need a Perl 7 interpreter to run this code.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics
Re: many errors, please help
by JavaFan (Canon) on Apr 01, 2012 at 23:38 UTC
    1. You wrote Module Hello where you wanted to write use 5.010;.
    2. You wrote Sub Main() when you should have fetched coffee instead.
    3. You misspelled say, and wrote MsgBox instead.
    4. You forgot to finished typing after the ).
    HTH. HAND.