for ( @lines ) { next if /^#/; # ... a dozen lines of code push @paragraph, $_; }