Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: use strict and warnings for newbes

by bladx (Chaplain)
on Aug 24, 2001 at 08:22 UTC ( [id://107612]=note: print w/replies, xml ) Need Help??


in reply to use strict and warnings for newbes

While this may be a good idea, John_M._Dlugosz, it may get tiresome to each particular anonymous monk that posts each and every time they post.

I am not trying to sound rude, but what if that person (he or she,) is actually very skilled in the language, and already know to use strict, and -w in their snippets or code? It might just make them consider perlmonks.org just a place where they think new people don't know anything about the language.

I think it's just fine to leave it the way it is, since newbies generally learn quite quickly that they should use strict, and -w... at least I did, and I know of many others :-).

That's just my quarter for this subject ;-).

Andy Summers

Replies are listed 'Best First'.
Re: Re: use strict and warnings for newbes
by damian1301 (Curate) on Aug 24, 2001 at 08:42 UTC
    Well...most new people don't now much about anything that they are new to.

    I think that it is just a kind reminder to first stop and consider that you are asking other people's help and assistance with nothing to give them in return. So, you might as well help them out as much as you can by first checking your code and making sure that there are no simple variable misspelling or a dinky mistake.

    All in all, it sounds like a good idea to me. A slight reminder here and there will never hurt anyone.

    $_.=($=+(6<<1));print(chr(my$a=$_));$^H=$_+$_;$_=$^H; print chr($_-39); # Easy but its ok.
Re: Re: use strict and warnings for newbes
by demerphq (Chancellor) on Aug 31, 2001 at 06:02 UTC
    To be honest I dont buy this skilled person argument. I do a lot of perl. Occassionally I leave it out of my code and then get bitten. Every time. When I have strange results its the first thing I check.

    I personally would have no problem if the input boxes came preloaded with the code block AND a nice

    use warnings; use strict;

    Honestly I think I agree with the perldocs that it is a bug that perl does not have these set by default, as you can always negate them as in the infamous

    no strict 'refs';

    Even the old hands from what Ive seen in the modules work under strict and warnings, and probably wouldnt mind much at all if they were present.
    Yves

A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found