Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 wandering the Monastery: (12)
As of 2016-09-30 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (569 votes). Check out past polls.