in reply to removing a needle from a haystack

If it's just one file wouldn't it make sense to use ls instead of grep? as in @file = split(/\n/,`ls id*`);