diff options
author | Audrey Tang <cpan@audreyt.org> | 2001-12-14 20:24:34 -0800 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-12-15 17:18:49 +0000 |
commit | 0c506aaefee7667a453a4ad4e885faf32acff3f5 (patch) | |
tree | 5bd9dc100a8310467e6bed1544119526fc68c570 /pod/perlstyle.pod | |
parent | 9a509d3e93c02f38c7777bb08082347419454814 (diff) | |
download | perl-0c506aaefee7667a453a4ad4e885faf32acff3f5.tar.gz |
perlstyle.pod nit on warnings
Message-ID: <20011215122434.GA1682@egb.elixus.org>
p4raw-id: //depot/perl@13702
Diffstat (limited to 'pod/perlstyle.pod')
-rw-r--r-- | pod/perlstyle.pod | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/pod/perlstyle.pod b/pod/perlstyle.pod index bfe5b76713..3fb9397090 100644 --- a/pod/perlstyle.pod +++ b/pod/perlstyle.pod @@ -10,11 +10,10 @@ make your programs easier to read, understand, and maintain. The most important thing is to run your programs under the B<-w> flag at all times. You may turn it off explicitly for particular -portions of code via the C<use warnings> pragma or the C<$^W> variable -if you must. You should -also always run under C<use strict> or know the reason why not. -The C<use sigtrap> and even C<use diagnostics> pragmas may also prove -useful. +portions of code via the C<no warnings> pragma or the C<$^W> variable +if you must. You should also always run under C<use strict> or know the +reason why not. The C<use sigtrap> and even C<use diagnostics> pragmas +may also prove useful. Regarding aesthetics of code lay out, about the only thing Larry cares strongly about is that the closing curly bracket of @@ -261,10 +260,9 @@ Line up your transliterations when it makes sense: Think about reusability. Why waste brainpower on a one-shot when you might want to do something like it again? Consider generalizing your code. Consider writing a module or object class. Consider making your -code run cleanly with C<use strict> and C<use warnings> (or B<-w>) in effect -Consider giving away -your code. Consider changing your whole world view. Consider... oh, -never mind. +code run cleanly with C<use strict> and C<use warnings> (or B<-w>) in +effect. Consider giving away your code. Consider changing your whole +world view. Consider... oh, never mind. =item * |