deano has asked for the wisdom of the Perl Monks concerning the following question:
I have file A.txt and B.txt
File A A.txt contains the following:
A|B|C|D|E F|G|I|J|K
File B B.txt contains the following:
A|B|C|D|E K|L|N|O|P
My task is to create a script to do the following:
1. Read contents of file A and B, load the content of the first column only into individual array.
ex. @arry={A,F};
2. compare elements of both arrays and print out the differences lines.
I need this for my work! the idea is to pull csv file from database and load it into an archive database then remove archived data from production database. I have spent hours today with no luck working on this
Your help is highly appreciated!
Thank younewbie monk!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using the split command
by ww (Archbishop) on Jan 27, 2012 at 04:31 UTC | |
|
Re: using the split command
by InfiniteSilence (Curate) on Jan 26, 2012 at 23:35 UTC | |
|
Re: using the split command
by kielstirling (Scribe) on Jan 26, 2012 at 23:32 UTC |