--- Steve MacMullin <[EMAIL PROTECTED]> wrote:
> Hi everyone,
> 
> I'm new to using perl and am having a terrible time debugging things
> because
> of the (seemingly to me) quite unhelpful run-time errors.  I do use:
> 'use
> strict;' and get an error like the following: 'Scalar found where
> operator
> expected... at end of line (Missing operator before ?)'
> 
> Looking at my code, I have a simple assignment statement, doesn't
> appear to
> be any unclosed braces/quotes/anything up above it.
> 
> All of this is sort of beside the point, but the source of my
> trouble.  My
> question is this: Is there any method (other than 'use strict;', or
> in
> conjunction with it) that will provide better error messages? 
> Perhaps it's
> just my newness to perl, but I've found the error messages from perl
> to be
> quite unhelpful compared to those of C/C++/other languages, I realize
> that
> they are compiled languages with stricter typing, but still.  I've
> tried
> 'perldoc strict'- couldn't really think of anything else.

Add the line
  use diagnostics -verbose; enable diagnostics;
to your program. It often explains things very well.

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to