$o->check(...); unless ($o->state) { action.. return; } $o->check(...); return if $o->state; action.... $o->blah() return unless $o->state; actions..check.. return if $r->state; and so on... at the same level