Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: use strict

by Jenda (Abbot)
on Jan 26, 2010 at 16:58 UTC ( #819721=note: print w/ replies, xml ) Need Help??


in reply to use strict

I was not using Perl in the old Perl4 times. I use strict in all my scripts for quite some time. But I would not want it to be default. It'd break my one-liners. And it's those I tend to type repeatedly, not the first four lines of the scripts (

#!perl use strict; use warnings; no warnings 'uninitialized';
)

Besides most of the problems would not be solved. People would just blindly put my or our all over the place to silence the error messages and their variables would be just as global and their programs just as badly designed.

Jenda
Enoch was right!
Enjoy the last years of Rome.


Comment on Re: use strict
Select or Download Code
Re^2: use strict
by JavaFan (Canon) on Jan 26, 2010 at 17:17 UTC
    It'd break my one-liners.
    Most suggestions to have it enabled by default make the exception for command line scripts (if -e or -E is used). AFAIK, Perl6 doesn't enable strict for command line scripts either.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2014-12-21 12:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (104 votes), past polls