# of course this is just an excerpt of code. sub { my $caller=shift; $rf->execute(substvars(@bind, @_)) or $caller->complain("Error executing this and that."); $rf->fetchall_arrayref; }