Perl Monk, Perl Meditation | |
PerlMonks |
Re: making my suroutine and parts of my program case insensitive.by The Mad Hatter (Priest) |
on Oct 31, 2004 at 12:21 UTC ( [id://404119]=note: print w/replies, xml ) | Need Help?? |
Change your first regex to /$_/ig. Note the i-modifier (which tells it to match case insensitively). Another option is to uc() or lc() all input data and then compare.
In Section
Seekers of Perl Wisdom
|
|