Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Grep expansion problem

by Codon (Friar)
on Sep 07, 2005 at 17:00 UTC ( [id://489937]=note: print w/replies, xml ) Need Help??


in reply to Grep expansion problem

Is there a specific reason for doing an exact match via regex when an equality check would suffice?
if ( grep $_ eq $x, @b ) { ... }
This would be faster and would not be vulnerable to metacharacter interpolation.

Ivan Heffner
Sr. Software Engineer, DAS Lead
WhitePages.com, Inc.

Replies are listed 'Best First'.
Re^2: Grep expansion problem
by Lyndley (Novice) on Sep 08, 2005 at 07:46 UTC
    Well it's just a proof of problem script. ;)

    Cheers all =)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2025-07-20 19:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.