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.


Grygonos