If you need a zero on fail then perhaps try being explicit with a ternary condition or by adding zero.
holding => ($vol =~ m/^HOLDING/ ? 1 : 0), holding => $vol =~ m/^HOLDING/ + 0,
See also https://perlmaven.com/boolean-values-in-perl.
In reply to Re: Bug in Class::Struct?
by swl
in thread Bug in Class::Struct?
by freonpsandoz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |