Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: Grep Pattern

by ikegami (Pope)
on Dec 13, 2018 at 18:25 UTC ( #1227210=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @a[ grep { $pat[ $_ % @$pat ] } 0..$#a ]
    
  2. or download this
    sub filter_by_pat {
       my $pat = shift;
    ...
    }
    
    filter_by_pat [0,1,1,0], ...
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2020-10-29 05:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (269 votes). Check out past polls.

    Notices?