Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: More Misleading Compiler Error Messages

by QM (Parson)
on Aug 02, 2006 at 14:23 UTC ( #565232=note: print w/replies, xml ) Need Help??


in reply to Re^3: More Misleading Compiler Error Messages
in thread More Misleading Compiler Error Messages

I see your point, though your example is lacking.

Yes, $s+++ is a syntax error. However, the previous statement should be completely resolved before the syntax error is encountered. my $s = shift . '!'; is a complete statement.

In my example, the syntax error causes the warning, even though the warning is bogus. Thereafter any statement using that variable also causes a warning. There seems to be some queue for warnings and error messages, and no particular priority.

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^5: More Misleading Compiler Error Messages
by ikegami (Pope) on Aug 02, 2006 at 17:37 UTC

    The single statement $s+1 = shift . '!'; causes both a warning and an error usefully. That's the usual case.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://565232]
help
Chatterbox?
and the grasshoppers chirp...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2017-02-21 18:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (314 votes). Check out past polls.