Home
Perl
Array
CGI
Class
Data Type
Database
File
GUI
Hash
Language Basics
Network
Regular Expression
Report
Statement
String
Subroutine
System Functions
Win32
XML
Menu
wantarray « Subroutine « Perl
Perl
Subroutine
wantarray
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