![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Extracting multiple column from csv file and adding/appending onto new csv file with first columns already existingby Yaerox (Scribe) |
on Apr 17, 2014 at 09:08 UTC ( #1082610=note: print w/replies, xml ) | Need Help?? |
I can't follow where Host/Device IP is cooming from. I guess this shows that you want to merge two csv files? I never worked on Solaris 10, but why not looking for .tar.gz and then using tar xzf (or something like that) to extract? A second way if installed would be cpan. get module, make module, test module, install module. Anyway, if you're able to extract one column, you just have to add the same part again in your loop by checking for another column ... you're creating an array or append on a string all your results (formatted) for both csv-files then writing a third loop printing into csv-file. Following code is not tested and should be more like a kind of Pseudo Code
If you would like you could probably use 2D-Arrays too. Regards
In Section
Seekers of Perl Wisdom
|
|