Crossposted at StackOverflow. It's considered polite to inform about crossposting so people not attending both sites don't waste their efforts hacking a solution to a problem already solved at the other end of the Internet.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Comment on Re: Perl: Function to search for a string
Help us to help you. Posting code that we can't run, or code that we run after some changes without the symptoms you describe, doesn't do it. Short, Self Contained, Correct Example explains the details.