in reply to New Monks Info Page
Not to be overly critical, but I really don't like that line. The "just stupid answers" part might discourage people from answering questions, or give them the impression that we're a bunch of jerks who aren't really funny. I personally can't think of an ending that I really like on it, though I would like some really funny catch phrase.
I would turn #4 into the following:
#!/usr/bin/perl -w # Equivalent to use warnings; see below. use strict; # Enforces safer, clearer code. use warnings; # Detects common programming errors use diagnostics; # Explains how to fix alerts from use warnings;
use strict; is useful mostly because, like in C or Java, it forces you to declare all your variables before use. This eliminates errors from misspelled variables and encourages the programmer to structure his/her program clearly. It also prevents some tricky things with references and subroutines.
use warnings; (or almost equivalently the -w command line switch) and use diagnostics; are closely related pragmas. use warnings; detects a ton of non-fatal errors caused by syntax mistakes, context misperceptions, etc... use diagnostics; can usually tell you how to fix these problems. These two pragmas especially benifit those new to Perl who are not yet familiar with Perl's idiosyncracies.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: New Monks Info Page
by chipmunk (Parson) on Jun 11, 2001 at 21:34 UTC | |
by pmas (Hermit) on Jun 11, 2001 at 21:57 UTC | |
|
(tye)Re: New Monks Info Page
by tye (Sage) on Jun 11, 2001 at 22:30 UTC | |
|
Re: Re: New Monks Info Page
by zeroquo (Novice) on Mar 07, 2002 at 03:47 UTC |