Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Bad Module Code

by ajdelore (Pilgrim)
on Jul 11, 2003 at 19:37 UTC ( [id://273545]=note: print w/replies, xml ) Need Help??


in reply to Bad Module Code

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...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://273545]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-25 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found