Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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?
[atcroft]: stevieb: I have berrybrew installed on a Win machine, and I noticed that with perlbrew you can "upgrade" a particular installed version... any chance of doing something similar in the
[atcroft]: future with berrybrew?
[atcroft]: stevieb: Also, one other odd question... is it possible to set it up so that all the versions installed can use a single directory that they pull module sources into, rather than duplicating files? (Am I making sense, or do I have too high a CBC
[atcroft]: (caffeine-blood content) atm?)

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2017-04-29 05:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (531 votes). Check out past polls.