wantarray can be your friend, too.
In reply to Re: Subroutine evaluated as boolean by boftx in thread Subroutine evaluated as boolean by Anonymous Monk