Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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.

Replies are listed 'Best First'.
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?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2022-08-17 22:29 GMT
Find Nodes?
    Voting Booth?

    No recent polls found