in reply to How can I find the first position of a substring case-insensitively?

I think you could simply do this :

my $position = index(lc($mystr),"a");

You first "lowercase" the string, and then look for your substring into it.

HTH
James