Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: use strict

by Jenda (Abbot)
on Jan 26, 2010 at 16:58 UTC ( [id://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.

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://819721]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2024-04-18 14:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found