in reply to Anonymous sub as error handler

You are not defining an anonymous sub, you are trying to call a subroutine with the name generated from the block:
&{ # code here returns a value, # that's interpreted as the name # of the subroutine to call... }

You need something like:

my $subroutine = sub { # code here defines an anonymous sub }; $subroutine->( @arguments ); #call sub
You should ask yourself what you want to do with your example: do you want to define a subroutine, call it or both?

In your case, I would just use an unless statement:

unless ($newSeriesSth->execute()) { # error handling }
Anonymous subs (esp. closures) are of much more use when you need callbacks.
-- Joost downtime n. The period during which a system is error-free and immune from user input.