in reply to How can I find the first position of a substring case-insensitively?
This way "a" matches the first instance of "A" or "a" in the original $mystr.my $lcstr = lc $mystr; my $ind = index($lcstr,"a");
Originally posted as a Categorized Answer.
|
|---|