sub fn1 { while () { $record = $_; $_ = uc($_); if (/$ucsearch/) { print "$record"; $count++; } } close (THE_FILE); }