On Sun, 15 Jul 2001, Steve MacMullin wrote:

> 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.

'perldoc diagnostics' may lead you in the right direction.

-- Brett
                                   http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
Hire the morally handicapped.


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

Reply via email to