wantarray Returns true if the context of the currently execut- ing subroutine is looking for an array value. Returns false if the context is looking for a scalar. return wantarray ? () : undef;