Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Reverse grep?

by chipmunk (Parson)
on Mar 02, 2002 at 17:23 UTC ( #148853=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @results = grep { $_ & 1 } (1 .. 10)
  2. or download this
    my $url = 'http://www.perlmonks.org/';
    my @regexes = ('/private(?:/|$)', 'python');
    if (grep { $url =~ $_ } @regexes) {
    ...
    } else {
      # handle good URL
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2020-07-10 00:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?