Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: 'use strict' is not Perl

by ducky (Scribe)
on Aug 30, 2001 at 01:19 UTC ( #108907=note: print w/ replies, xml ) Need Help??


in reply to 'use strict' is not Perl

...nor should it be turned off by default.

I, for one, am glad -w and use strict, or the functionality at least, will be default in perl 6. It's such a spinal macro typing the perl shebang including -w, two enters and "use strict ;" I sometimes forget to really stress the importance to newcomers to perl that I'm mentoring.

Building on that note, I recently took another inductee under my wing - last night in fact. He had a strong desire to learn Perl but knew he really needed a project to use it on. One of his friends suggested he make his web site a little more dynamic and use PHP to ease him into Perl. PHP! That's like telling someone to use ol' MS-DOS so they'd be ready for Unix! So I gave him some space on my server with HTML::Mason. =)

The upshot of the above is now he's got a fun project to work on, it's getting him comfortable with Perl at his own pace, and HTML::Mason defaults to use strict with warnings on! Hahaha, I almost feel naughty about it =)

-Ducky


Comment on Re: 'use strict' is not Perl
Re: Re: 'use strict' is not Perl
by mischief (Hermit) on Oct 15, 2001 at 21:16 UTC

    ...nor should it be turned off by default.

    That would make one-liners very awkward.

      Which is why it'll be off by default for command-line programs. (I don't want to declare variables for one liners either, so...)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2015-07-05 21:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls