Perl - Flow control

perl

last;    // break out of a loop, equivalent to the break statement in C
next;    // jump to next iteration, equivalent to the continue statement in C
redo;    // jump to the beginning of the block

while (<>) {
    if (/abc/) print;
}
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License