Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 contemplating the Monastery: (9)
As of 2014-10-20 08:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (73 votes), past polls