Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by dbuckhal (Friar)
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 voices are still...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2018-06-24 00:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?