$[ = 1; $a[$i] #### use constant BASE => 1; $a[$i-BASE] #### for (@stories) { print $fh $_ if /$fields[1]/; }