Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Why use strict/warnings?

by FoxtrotUniform (Prior)
on Aug 09, 2001 at 23:59 UTC ( #103605=note: print w/ replies, xml ) Need Help??


in reply to Why use strict/warnings?

Just thought I'd throw in something else that I haven't seen posted yet: saying

use strict;

lets anyone else who reads your code know that you know what you're doing, which makes a difference when they read it. (They can, for instance, assume that if they see an unqualified variable in a subroutine, it's local to that sub, and not some sort of magic state that affects other parts of the code.) This makes your code easier to read, which makes everyone happier.


Comment on Re: Why use strict/warnings?
Download Code
Re: Re: Why use strict/warnings?
by mugwumpjism (Hermit) on Aug 10, 2001 at 01:39 UTC

    That's all well and good, until you see the next line:

    use vars qw($CONFIG $my_loop_var $fileno $window_size ....)

    Perhaps we need a new pragma:

    use Schwern;   # Schwern is my bitch.

    I'm sure the people reading the code would get the gist then.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2014-08-29 00:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (275 votes), past polls