in reply to variable comparison

I am not sure exactly what you are doing, but for a more structural approach to filenames and extensions, try File::Basename Terrence "I dont answer Anonymous Monks' Questions" Brannon