#if ( $_ =~ /^#/ ) { next } # commented out in the OP