Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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.


Comment on Re: Help Perl Program - I have compilation errors don't know where
Select or Download Code
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2014-07-26 15:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (178 votes), past polls