Capture::Attribute::Return - the result of a "return" statement
This is an Any::Moose class. Hopefully you'll never need to use it.
new(%attributes)
wasarray
Indicates whether the returned value was the result of a function call in "wantarray" mode or not. Either true, false or undef. See wantarray in perlfunc.
wantarray
value
The return value, or if wasarray is true, then a reference to an array containing the list of returned values.
is_list
is_scalar
is_void
Slightly nicer than fiddling with checking the definedness and truthiness of wasarray.
This class overloads array and scalar dereferencing.
Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=Capture-Attribute.
Capture::Attribute.
Toby Inkster <tobyink@cpan.org>.
This software is copyright (c) 2012 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
To install Capture::Attribute, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Capture::Attribute
CPAN shell
perl -MCPAN -e shell install Capture::Attribute
For more information on module installation, please visit the detailed CPAN module installation guide.