http://qs321.pair.com?node_id=786068


in reply to Re^3: About a piece of code
in thread About a piece of code

olus you say: and next; part is saying that, if the line that was read matches that condition, then you don't want to execute the rest of the code inside the while statement, you want to read a new line from input, meaning that the next code to be executed is while (<input>).
while (<input>) { m/^\n/ and next; m/^\n/ and next; ... }
if the code was like above, wouldnt the second "m/^\n/ and next;" line be executed?

Because you said "if the line that was read matches that condition, then you don't want to execute the rest of the code inside the while statement"