Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

RE: RE: better way to find list members?

by japhy (Canon)
on Oct 17, 2000 at 00:36 UTC ( [id://37019]=note: print w/replies, xml ) Need Help??


in reply to RE: better way to find list members?
in thread better way to find list members?

No no no no no no no. The FAQ strongly suggests against this, and for many reasons:
  • grep() does not short circuit -- once it finds a match, it will keep going through the rest of the list
  • the regex you use is compiled EVERY SINGLE TIME -- this can be slow and irritating
  • the regex you use will say ('foo','bar','blat') contains the element 'ar', even though it doesn't
  • you shouldn't even correct the regex (that is, add the \A and \z anchors, and \Q and \E escapes), you should use $_ eq $bar
  • DON'T USE GREP


$_="goto+F.print+chop;\n=yhpaj";F1:eval
  • Comment on RE: RE: better way to find list members?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-25 18:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found