in reply to Re: (jeffa) Re: Perl script commenting assistant
in thread Perl script commenting assistant
And while your suggestion of substituting in warn has been duly noted, that final blurb was an 'inside joke', a reference to the infamous use CGI or die; write up. I'll leave it intact, thank you. ;)
use POD or die $!;
UPDATE:
I almost forgot about using POD as multi-line comments.
Personally, i think that # comments are the uglier of the
two:
versus# function: foo # input : bar baz # output : qux # precond : bar and baz are defined # postcond: qux is defined sub foo { }
Two extra lines, but you don't have to worry about prepending #'s. You don't have to have 'valid' POD to create a multi-line comment, by the way. Just a simple =for token to start and =cut to end.=for comment function: foo input : bar baz output : qux precond : bar and baz are defined postcond: qux is defined =cut sub foo { }
UPDATE2
sigh ... you missed my points completely ... did you
even read tilly's post?
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (jeffa) 3Re: Perl script commenting assistant
by Wafel (Novice) on Jul 08, 2003 at 16:16 UTC | |
|
Re: (jeffa) 3Re: Perl script commenting assistant
by Wafel (Novice) on Jul 08, 2003 at 17:27 UTC |