From what you are asking, it sounds like you are using a regex, then add a i to the end of the regex. If not a regex, then you could either uc ( upper case ) or lc ( lower case ) the inputted value and check accordingly.
uc($filename) eq 'SUPER.GIF' or lc($filename) eq 'super.gif' if ( $filename =~ /super\.gif/i ) { # hit }else { # no hit } Wags ;) -----Original Message----- From: Anthony Saffer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 09:11 To: Perl Beginners List Subject: Yet another question... Hello Again Everyone, I do apologize for all the newbie questions but I really have to get this program written today and this list is my only "live" resource besides Google. I'll try to keep my questions to a minimum. But here is one more if you don't mind. 1. How do I ignore case in my program so that if the filename is named 'SUPER.GIF' yet it's called as 'super.gif' in my program I can match it? Thanks in advance, Anthony ********************************************************** This message contains information that is confidential and proprietary to FedEx Freight or its affiliates. It is intended only for the recipient named and for the express purpose(s) described therein. Any other use is prohibited. **************************************************************** -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]