1

Topic: perl: continue after while the unit

Explain the following unit of the code, please while (<>) {$ _ = $ _. "\n"} continue {print or die "-p failed: $! \n";} it is not clear, what semantics continue after while the unit. Thankful in advance!

2

Re: perl: continue after while the unit

Hello, PitoWilson, you wrote: PW> it is not clear, what semantics continue PW> after while the unit. http://perldoc.perl.org/perlfunc.html#continue-BLOCK If there is a continue BLOCK attached to a BLOCK (typically in a while or foreach), it is always executed just before the conditional is about to be evaluated again, just like the third part of a for loop in a C.