For.pm


NAME

Communiware::Filter::For


SYNOPSIS

        <:Loop ::For(START,STOP[,INCREMENT]):>
                <:Attr VALUE:>
        <:EndLoop:>


DESCRIPTION

Return numbers from START to STOP, in steps of INCREMENT.

INCREMENT should be positive if FIRST is smaller than LAST, and negative otherwise.

INCREMENT is optional and equals to 1 if FIRST is smaller than LAST, and -1 otherwise.

WARNING perl internals by default not optimized for work with floating-point numbers so don't use long fraction (> 2).

Maximum iteration count is limited to 1000000 (1 million).

16 октябрь 2007 13:44