Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Error in my Regular expression pattern

by mendeepak (Beadle)
on Mar 19, 2012 at 11:54 UTC ( #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


Comment on Re: Error in my Regular expression pattern
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://960398]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2014-12-26 06:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (165 votes), past polls