Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 lurking in the Monastery: (3)
As of 2020-11-01 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (291 votes). Check out past polls.

    Notices?