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>).
if the code was like above, wouldnt the second "m/^\n/ and next;" line be executed?while (<input>) { m/^\n/ and next; m/^\n/ and next; ... }
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"
In Section
Seekers of Perl Wisdom