NAME
Syntax::Feature::Void - Provides the void
operator to force void context.
VERSION
Version 1.2.0
SYNOPSIS
use syntax qw( void );
sub f {
void g();
}
The above is functionally equivalent to the following:
sub f {
g();
return;
}
DESCRIPTION
Syntax::Feature::Void is a lexically-scoped pragma that provides the void
operator to force void context. Not that anyone needs that.
This module serves as a demonstration of the cv_set_call_parser
and cv_set_call_checker
Perl API calls.
use syntax qw( void );
use Syntax::Feature::Void;
Enables the use of void
until the end of the current lexical scope.
no syntax qw( void );
no Syntax::Feature::Void;
Restores the standard behaviour of void
(a sub call) until the end of the current lexical scope.
void EXPR
Evalutes EXPR in void context.
SEE ALSO
BUGS
Please report any bugs or feature requests to bug-Syntax-Feature-Void at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Syntax-Feature-Void. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Syntax::Feature::Void
You can also look for information at:
Search CPAN
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Syntax-Feature-Void
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
AUTHOR
Eric Brine, <ikegami@adaelis.com>
COPYRIGHT & LICENSE
No rights reserved.
The author has dedicated the work to the Commons by waiving all of his or her rights to the work worldwide under copyright law and all related or neighboring legal rights he or she had in the work, to the extent allowable by law.
Works under CC0 do not require attribution. When citing the work, you should not imply endorsement by the author.