From: Jarkko Hietaniemi Date: Tue, 2 Feb 1999 16:47:50 +0000 (+0000) Subject: Still doc fixes. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ae2c041d65d6642c793feaa98698e06641f3bda8;p=p5sagit%2Fp5-mst-13.2.git Still doc fixes. p4raw-id: //depot/cfgperl@2789 --- diff --git a/lib/diagnostics.pm b/lib/diagnostics.pm index 648ea12..1f3f30c 100755 --- a/lib/diagnostics.pm +++ b/lib/diagnostics.pm @@ -4,7 +4,7 @@ package diagnostics; diagnostics - Perl compiler pragma to force verbose warning diagnostics -splain - stand-alone program to do the same thing +splain - standalone program to do the same thing =head1 SYNOPSIS @@ -41,9 +41,9 @@ that this I enable perl's B<-w> flag.) Your whole compilation will then be subject(ed :-) to the enhanced diagnostics. These still go out B. -Due to the interaction between runtime and compile time issues, +Due to the interaction between runtime and compiletime issues, and because it's probably not a very good idea anyway, -you may not use C to turn them off at compile time. +you may not use C to turn them off at compiletime. However, you may control there behaviour at runtime using the disable() and enable() methods to turn them off and on respectively. @@ -66,7 +66,7 @@ Output from I is directed to B, unlike the pragma. =head1 EXAMPLES The following file is certain to trigger a few errors at both -runtime and compile time: +runtime and compiletime: use diagnostics; print NOWHERE "nothing\n"; @@ -526,7 +526,7 @@ sub shorten { } -# have to do this: RS isn't set until run time, but we're executing at compile time +# have to do this: RS isn't set until run time, but we're executing at compiletime $RS = "\n"; 1 unless $standalone; # or it'll complain about itself