Mukthar, I am not sure I understood your problem, but let me give a try. The user input a value for $MACHINE_TYPE and you want to test if there exists a file "$first.trc.$MACHINE_TYPE" regardless of case in the variable. This is it?
It depends: if the filesystem is case-insensitive (like in Windows), -e "$first.trc.$MACHINE_TYPE" would find it out for you, regardless of how the filename appears. If you are in Unix which is case-aware, you may try a glob like "$first.trc.*" that would match all your interesting files and more, and then select the ones you care about. Like this for (glob "$first.trc.*") { print "FOUND: $_" if /$first.trc.$MACHINE_TYPE/i; } Adriano Ferreira -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>