Syntactic Confectionery Delight | |
PerlMonks |
Re: Bad Module Codeby ajdelore (Pilgrim) |
on Jul 11, 2003 at 19:37 UTC ( [id://273545]=note: print w/replies, xml ) | Need Help?? |
In the case of a single program or script, I would agree that it is unimportant that your function return anything if this is not needed. However, since this is a module, and intended for re-use, the function may be used in other situations that you might not anticipate. In this case, I believe that any function should return at minimum a 1 or 0 to indicate success/failure. Of course, as others have very astutely pointed out, your function does this anyways. </ajdelore> OT beef: How may vi users out there press Esc while editing text in the textarea field and lose everything they wrote? Grrr...
In Section
Seekers of Perl Wisdom
|
|