Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: don't get bit by split.

by runrig (Abbot)
on Mar 21, 2001 at 16:43 UTC ( [id://66070]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: don't get bit by split.
in thread @arrys & Non exact searches.

Instead of this:
my @matches = grep { /$pattern/ } @names;
this will get just the indexes:
my @matches = grep { $names[$_] =~ /$pattern/ } 0..$#names;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://66070]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.