Keep It Simple, Stupid | |
PerlMonks |
Re: comparing arraysby ambrus (Abbot) |
on Sep 21, 2004 at 17:26 UTC ( [id://392720]=note: print w/replies, xml ) | Need Help?? |
The simple solutions is using textutils
(Update: the solution above is wrong. Thanks to L~R for warning me about it. The corrected version is below, which btw finds matches only if the numbers in the first column match textually, not only numerically.)
And here's a perl solution, dedicated to merlyn.
Update 2009 sep 2. See Re^2: Joining two files on common field for a list of other nodes where unix textutils is suggested to merge files.
In Section
Seekers of Perl Wisdom
|
|