while( my($login, $junkfile) = split /\|!!\|, ) { if ($login eq $id) { chomp $junkfile; $exact_match = $junkfile; last; } }