p.s. I could localise __WARN__ to an outer scope but messes up other warn()'s.
So go for best of both worlds?
{ my $obj; local $SIG{__WARN__} = sub { die "died with $_[0], the object was $o +bj" } for $obj (@objstoinsert){ $obj->insert() } }
In reply to Re: DBIx::Class die on warning
by hippo
in thread DBIx::Class die on warning
by bliako
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |