--- psinib.pl 2003/11/08 00:31:14 1.20 +++ psinib.pl 2003/11/08 01:46:53 1.21 @@ -100,7 +100,7 @@ } $sub_nr++; # skip comments in subjects.txt - while($subjects[$sub_nr] =~ m/^#/) { + while($subjects[$sub_nr] && $subjects[$sub_nr] =~ m/^#/) { $sub_nr++; } $sub_nr = 0 if (! $subjects[$sub_nr]);