Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Error in my Regular expression pattern

by mendeepak (Scribe)
on Mar 19, 2012 at 11:54 UTC ( [id://960398] : note . print w/replies, xml ) Need Help??


in reply to Error in my Regular expression pattern

Check this code

$_ = "Twinkle twinkle little star"; $n = m/twinkle/i; print "Number of occurences = $n\n"; while(/twinkle/ig) { $count++; } print "Found $count times\n";
i am still searching why your code is not working!!! q