Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Help Perl Program - I have compilation errors don't know where

by Corion (Pope)
on May 19, 2010 at 21:29 UTC ( #840802=note: print w/replies, xml ) Need Help??

in reply to Help Perl Program - I have compilation errors don't know where

If you get compilation errors, perl tells you where they are. Why do you keep that information to yourself?

Have you tried reducing your program to a program that has no such compilation errors? Then the error must be in a part that you removed. That would be a way to isolate the parts of the program where there are things that make no sense to perl, which in turn makes Perl raise compilation errors.

Replies are listed 'Best First'.
Re^2: Help Perl Program - I have compilation errors don't know where
by tangieb01 (Novice) on May 19, 2010 at 21:38 UTC

    Actually I forgot to put that. Compilation error on: 2nd line - While ($valid eq "false"){ second from the bottom line - }

      Perl does not output error messages like "second from the bottom line". If you want to provide us with more information, please post the verbatim output that perl produces, not some vague reinterpretation. Perl error messages contain the line number(s) of the offending line(s), and the first line mentioned, and those preceeding it are the likely culprits of causing the first erro. Also, there is no While keyword in Perl. Maybe you want to read perlsyn and some book about starting out with Perl?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://840802]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2016-10-28 05:03 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (375 votes). Check out past polls.