if ya want it even shorter, try $self->{_id} = defined($id) ? $id : $self->{_id}
In reply to Re: What does this mean? by linuxkid in thread What does this mean? by fritz1968