Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Style or Clarity?

by Grygonos (Chaplain)
on Jun 08, 2004 at 20:28 UTC ( #362534=note: print w/replies, xml ) Need Help??


in reply to Style or Clarity?

Agreed dragonchild I often find myself (in validation subs) doing the following

foreach (@_) { return 0 if !$_; }
Simply disallowing undefined values to be passed for validation. Your caller will need to be mindful of the return value, so that it can re-request input...but that's just one example of where I find this type of programming useful.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2020-11-24 18:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?