Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: m// vs grep for counting occurances of a string

by mreece (Friar)
on Aug 11, 2007 at 05:28 UTC ( #631929=note: print w/replies, xml ) Need Help??


in reply to m// vs grep for counting occurances of a string

incidentally, if you replace grep with map, you get the behavior you were expecting (a count of 4).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2023-03-26 21:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (63 votes). Check out past polls.

    Notices?