Cheap web site hosting service by Active-Venture.com
  

 Back to Index

wantarray

wantarray

Returns true if the context of the currently executing subroutine is looking for a list value. Returns false if the context is looking for a scalar. Returns the undefined value if the context is looking for no value (void context).

 
    return unless defined wantarray;	# don't bother doing more
    my @a = complex_calculation();
    return wantarray ? @a : "@a";  

This function should have been named wantlist() instead.

 

  

 

Domain registration - Domain registration service and cheap domain transfer
 

Cheap domain names -
Register domain name services from just
$8.95/year only
 

Register domain name search -
Register domain or buy domain name registration and cheap domain transfer at low, affordable price.

© 2002-2004 Active-Venture.com Web Site Hosting Service

 

[ UNIX is an operating system, OS/2 is half an operating system, Windows is a shell, and DOS is a boot partition virus.   ]

 

 
 
 

Disclaimer: This documentation is provided only for the benefits of our web hosting customers.
For authoritative source of the documentation, please refer to http://www.perldoc.com