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

Re: Pattern matching across two files, Need something better than grep -f!

by pvaldes (Chaplain)
on Apr 11, 2012 at 00:12 UTC ( #964428=note: print w/ replies, xml ) Need Help??


in reply to Pattern matching across two files, Need something better than grep -f!

Sorry, but I'm afraid that I'm not understanding the problem here. Just to suggest that you choose carefully your variable names:

if($split[0] eq $split1[0] && $split[1] eq $split1[1])

Lines like this are artificially hard to read. Is really easy to miss the "one" before the "[". You'll realize also that to name a new variable with the same name of a common function was not so great idea when you'll need to debug or expand your code some months later.


Comment on Re: Pattern matching across two files, Need something better than grep -f!
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2014-12-21 09:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (104 votes), past polls