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

Re: Re: Good programming practice

by tretin (Friar)
on Nov 04, 2001 at 10:39 UTC ( [id://123139]=note: print w/replies, xml ) Need Help??


in reply to Re: Good programming practice
in thread Good programming practice

That's great! I've noticed that more than once when writing my scripts and using -w and, or, use strict, and now I know why. Now those warnings and failed scripts make a whole lot more sense. Thanks for asking a good question!

just my 5 cents (ran out of pennies!)

Replies are listed 'Best First'.
Re^3: Good programming practice
by Aristotle (Chancellor) on Nov 05, 2001 at 02:09 UTC
    The intent behind only used once warnings is that it may be a mistyped variable - for instance, you might have a $variable in your code which somewhere is referred to as $vairable. This warning would catch it (however it seems a bit pointless to be warned of single-use variables when at the same type strict will force an error at compile time on mistyped variable names).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-25 06:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found