|No such thing as a small change|
Answer: How can I find the first position of a substring case-insensitively?
Q&A > strings > How can I find the first position of a substring case-insensitively? contributed by ambrus
You could use regexps, like this:
this works even if $needle has regexp-metacharacters in it.
But @- exists only in newer perls (from 5.6.1 I think). In perl 5.005 you could use something like
but note that $` makes perl slower.
Whitespace added by tye