Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Curious find while comparing grep, map, and smart match... (substring)

by dbuckhal (Hermit)
on Mar 27, 2013 at 01:54 UTC ( #1025614=note: print w/replies, xml ) Need Help??


in reply to Re: Curious find while comparing grep, map, and smart match... (substring)
in thread Curious find while comparing grep, map, and smart match...

That makes sense, hence many single digit values are rarely present.

Good candidate for a "golf"-ish answer!

UPDATE: adding word boundaries helped, now the arrays generated are equal.

map { /\b$rInt\b/ } @mArray

Thanks!

  • Comment on Re^2: Curious find while comparing grep, map, and smart match... (substring)
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2019-12-12 14:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?