in reply to Error in my Regular expression pattern
Check this code
i am still searching why your code is not working!!! q$_ = "Twinkle twinkle little star"; $n = m/twinkle/i; print "Number of occurences = $n\n"; while(/twinkle/ig) { $count++; } print "Found $count times\n";
In Section
Seekers of Perl Wisdom