Help for this page
$foo->setval($val) or $foo->setval($alternative); # and something like eval { $foo->val = $val } $@ and $foo->val = $alternative;