Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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.

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://819721]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2018-07-19 08:22 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (404 votes). Check out past polls.