August 17th, 2012, 12:56 PM
How to get difference of two arrays in an array
I am having an array A having N file names. Another array is having N-x files.I want to get an array which should have N-(N-x)= x file names. Please help.
Thanks a lot for the help in advance.
August 17th, 2012, 01:02 PM
There are numerous Lists modules at the CPAN (such as Lists::Utils, etc., which can do this for you (finding unions, intersection, difference, symmetric difference, etc. between two or more lists).
August 17th, 2012, 01:17 PM
I am new to perl.never done that before. Can you please provide me the code for this.Thanks.
August 17th, 2012, 01:33 PM