Syntax::Feature::Loop - Provides the loop BLOCK syntax for unconditional loops.
loop BLOCK
Version 1.8.0
use syntax qw( loop ); loop { ... last if ...; ... }
Syntax::Feature::Loop is a lexically-scoped pragma that provides the loop BLOCK syntax for unconditional loops.
This module serves as a demonstration of the cv_set_call_parser and cv_set_call_checker Perl API calls.
cv_set_call_parser
cv_set_call_checker
use syntax qw( loop );
use Syntax::Feature::Loop;
Enables the use of loop BLOCK until the end of the current lexical scope.
no syntax qw( loop );
no Syntax::Feature::Loop;
Restores the standard behaviour of loop (a sub call) until the end of the current lexical scope.
loop
Repeatedly executes the BLOCK until it is exited using last, return, die, etc.
last
return
die
In other words, it behaves just like all of the following:
for (;;) BLOCK
while (1) BLOCK
while () BLOCK
Like other flow control statements, there is no need to terminate the statement with a semi-colon (;).
;
syntax
Devel::CallParser
Devel::CallChecker
Lexical::Sub
perlapi
Please report any bugs or feature requests to bug-Syntax-Feature-Loop at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Syntax-Feature-Loop. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-Syntax-Feature-Loop at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Syntax::Feature::Loop
You can also look for information at:
Search CPAN
http://search.cpan.org/dist/Syntax-Feature-Loop
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Syntax-Feature-Loop
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Syntax-Feature-Loop
CPAN Ratings
http://cpanratings.perl.org/d/Syntax-Feature-Loop
Eric Brine, <ikegami@adaelis.com>
<ikegami@adaelis.com>
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.
To install Syntax::Feature::Loop, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Syntax::Feature::Loop
CPAN shell
perl -MCPAN -e shell install Syntax::Feature::Loop
For more information on module installation, please visit the detailed CPAN module installation guide.