DavidSzczesniak
12/11/2017 - 11:39 AM

Restart a loop at its next iteration

Use this when you've done everything you need to do in the current iteration.

# Example: loop over lines in a file, skipping those that start with the comment character '#'
while (<$fh>) {
  next if /\A#/;
  ...
}