Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

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


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
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (None)
    As of 2022-01-26 07:27 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      In 2022, my preferred method to securely store passwords is:












      Results (69 votes). Check out past polls.

      Notices?