"Dr.Ruud" <rvtol+> wrote in news:dl7o6h.1h4.1
@news.isolution.nl:
> return undef if $num < 0
> || ($base ||= 10) < 2
> || MaxBase < $base
> || ($minlen ||= 1) < 1;
You should use a plain return here rather than returning undef. Otherwise,
in list context, the sub will return a non-empty list with one element,
foiling conditionals.
Sinan
--
A. Sinan Unur <>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/cl...uidelines.html