Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 rifling through the Monastery: (8)
As of 2016-06-28 20:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (361 votes). Check out past polls.