Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Welcome to the Monastery
 
PerlMonks  

Re: Curious find while comparing grep, map, and smart match...

by jwkrahn (Monsignor)
on Mar 27, 2013 at 02:13 UTC ( #1025616=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
            redo if ( @gArray && grep { /$rInt/ } @gArray );
    ...
            redo if ( @mArray && map { /$rInt/ } @mArray );
    ...
            redo if ( @sArray && $rInt ~~ @sArray );
    
  2. or download this
            redo if @gArray && grep /$rInt/, @gArray;
    ...
            redo if @mArray && map /$rInt/, @mArray;
    ...
            redo if @sArray && /$rInt/ ~~ @sArray;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-04-19 10:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (480 votes), past polls