http://qs1969.pair.com?node_id=108907


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

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