Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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
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 about the Monastery: (3)
As of 2021-01-22 03:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?