my $var = $self->{default_foo}; $var = $opts->{foo} if $opts->{foo};
my $var = $opts->{foo} ? $opts->{foo} : $self->{default_foo};
Devel::Cover doesn't seem to recognize the common idiom of using "||" where only the LHS is part of the condition.
In reply to Re: Devel::Cover and impossible codepaths
by ikegami
in thread Devel::Cover and impossible codepaths
by Tanktalus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |