Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Confusing warning with if/elsif/else

by radiantmatrix (Parson)
on Dec 08, 2005 at 15:22 UTC ( [id://515266]=note: print w/replies, xml ) Need Help??


in reply to Confusing warning with if/elsif/else

I find it fascinating that you're focusing on the somewhat inaccurate reporting of line numbers that "cost you time", but seem to be glossing over the fact that strict did help you find a mistake.

Yes, the behavior of the warning is sometimes strange, and that should (and will) be addressed. But ultimately, strict promises to help highlight mistakes, and it did just that. I'd guess that, overall, you still saved time by avoiding having to hunt down a logic bug later.

Update: the downvotes tell me that my tone might be mistaken. I'm not trying to be critical or insulting, I really do find it interesting that a problem that appears to cost in the short run seems to take the focus away from the fact that, despite the annoyance, strict is still a good practice. I posted this to remind novices that the benefits of strictures still outweigh their shortcomings.

<-radiant.matrix->
A collection of thoughts and links from the minds of geeks
The Code that can be seen is not the true Code
"In any sufficiently large group of people, most are idiots" - Kaa's Law

Replies are listed 'Best First'.
Re^2: Confusing warning with if/elsif/else
by gumpu (Friar) on Dec 08, 2005 at 18:03 UTC

    Afraid I have not expressed myself clearly enough. I am all for 'strict'. Use it all the time. However this warning (and it was not even a strict warning as was pointed out) was just a bit confusing in this particular instance. Just wanted to share this information so others can avoid falling in the same trap.

    Have Fun

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (8)
As of 2024-03-28 09:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found