There's no other way around that, since assignment returns the assigned value, rather than a true/false "it worked" value.eval {#$HashOfTNBs{$rec_count}{$subindex} = $1}; if ($@) { throw TNBCriticalColException("Cannot add multiple key entry in ha +sh array"); }
In reply to Re: Eval Issue
by Elian
in thread "0" or throw problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |