wantarray « Subroutine « Perl






1.wantarray() returns true if caller wants list, false if caller wants scalar, and an undefined value if the caller wants nothing.
2.The wantarray Function and User-Defined Subroutines