Melvin Smith wrote: > So we have undef and reallyundef? :) Seems reasonable, given that we have c<defined> and c<exists>.
How about:
sub foo ( $a is optional )
{
if exists($a) { ... }
elsif defined($a) { ... }
else { ... }
}
Dave.
Melvin Smith wrote: > So we have undef and reallyundef? :) Seems reasonable, given that we have c<defined> and c<exists>.
How about:
sub foo ( $a is optional )
{
if exists($a) { ... }
elsif defined($a) { ... }
else { ... }
}
Dave.