use Carp::Assert; sub foo { is(scalar @_, 2) if DEBUG; } #### no Carp::Assert;