if ($filename !~ m^/[a-z]{1,7}\.TXT$/i) #### if ($filename !~ m/^[a-z]{1,7}\.TXT$/i) #### $my @t = split (/\s+/); #split sentences into "words" #### my @t = split (/\s+/); #split sentences into "words" #### die("File format not valid\n");)