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

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 =)


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...)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2022-05-28 10:58 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (99 votes). Check out past polls.