$newfile =~ /^$oldfile$/i
As much as I like regexps, I would be much more likely to write that as:
if ( lc $newfile eq lc $oldfile )
In my eyes, that's the canonical case-insensitive equality comparision.
In reply to Re^2: case insensitive filename matching
by edan
in thread case insensitive filename matching
by Preceptor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |