Agreed dragonchild I often find myself (in validation subs) doing the following
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.foreach (@_) { return 0 if !$_; }
In reply to Re: Style or Clarity?
by Grygonos
in thread Style or Clarity?
by periapt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |