Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by davorg (Chancellor)
on Mar 21, 2001 at 21:51 UTC ( #66075=note: print w/replies, xml ) Need Help??


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

Replace your grep line with this:

my @matches = grep { $names[$i] =~ /$pattern/ } 0 .. $#names;
--
<http://www.dave.org.uk>

"Perl makes the fun jobs fun
and the boring jobs bearable" - me

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://66075]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2018-07-20 07:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (426 votes). Check out past polls.

    Notices?