$obj->update_thing(15000, 20000, sub { $_[0] =~ s[something][else]g; $_[0] } );