Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 about the Monastery: (5)
As of 2014-09-22 05:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (182 votes), past polls