definedor { $self->error('blah blah')) } $foo = $bar->id; # Ugly defined($foo = $bar->id) or $self->error('blah blah')); # Better