while () { next if /^#/; # Skip comments # now do something with $_ }