The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

feature::loop - Provides the loop BLOCK syntax for unconditional loops.

VERSION

Version 1.2.0

SYNOPSIS

    use feature::loop;

    loop {
       ...
       last if ...;
       ...
    }

DESCRIPTION

Provides the loop BLOCK syntax for unconditional loops.

Like other flow control statements, there is no need to terminate the statement with a semi-colon (;).

This module serves as a demonstration of the "cv_set_call_parser" in perlapi and "cv_set_call_checker" in perlapi Perl API calls.

Other ways of achieving the same result are:

for (;;) BLOCK
while (1) BLOCK
while () BLOCK

use feature::loop;

Enables the use of loop BLOCK until the end of the current lexical scope.

no feature::loop;

Restores the standard behaviour of loop (a sub call) until the end of the current lexical scope.

SEE ALSO

BUGS

Please report any bugs or feature requests to bug-feature-loop at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=feature-loop. 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 feature::loop

You can also look for information at:

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.