jpinyan@sushi.riskgrades.com wrote: > [snip] > sub STORE { > my ($self, $val) = @_; > local $_ = $self->{VAL} = $val; > $self->{CODE}->() ? $_ : last; # <-- bad news > } [snip] > When I run this code, I'm told I can't call last() from outside a loop > block. That is only a warning. Your code should still work as you expect. One other way to suppress the warning (not mentioned on fwp) would be to put no warnings 'exiting'; right before the line with "last". -- Rick Delaney rick.delaney@home.comThread Previous | Thread Next