NAME
Syntax::Feature::Void - Provides the void
operator to force void context.
VERSION
Version 1.4.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 ability to add keywords to the Perl language using PL_keyword_plugin
.
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
DOCUMENTATION AND SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Syntax::Feature::Void
You can also find it online at this location:
If you need help, the following are great resources:
You may also contact the author directly.
BUGS
Please report any bugs or feature requests using https://github.com/ikegami/perl-Syntax-Feature-Void/issues. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
REPOSITORY
AUTHOR
Eric Brine, <ikegami@adaelis.com>
COPYRIGHT AND 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.