U
Udaykumar Kunapuli
Hi,
I have 2 lists.
As an example:
@list1 = (1234, 345638, 3535, 93756387);
@list2 = ("375539 Linux DONE", "1234 Linux DONE", "345638 Linux EXIT", "6384643 Linux RUN", "45234 Linux RUN", "3535 Linux DONE", "93756387 Linux DONE");
I need to print out the list of elements in list2 where the first number part of the string does NOT exist in list1.
I need to get a list3 from list2 where list3 looks like below
@list3 = ("375539 Linux DONE", "6384643 Linux RUN", "45234 Linux RUN");
None of the above first number parts in list3 exist in list1, which is how I want it to be.
What would be the simplest way of doing this in Perl?
Thanks,
Uday
I have 2 lists.
As an example:
@list1 = (1234, 345638, 3535, 93756387);
@list2 = ("375539 Linux DONE", "1234 Linux DONE", "345638 Linux EXIT", "6384643 Linux RUN", "45234 Linux RUN", "3535 Linux DONE", "93756387 Linux DONE");
I need to print out the list of elements in list2 where the first number part of the string does NOT exist in list1.
I need to get a list3 from list2 where list3 looks like below
@list3 = ("375539 Linux DONE", "6384643 Linux RUN", "45234 Linux RUN");
None of the above first number parts in list3 exist in list1, which is how I want it to be.
What would be the simplest way of doing this in Perl?
Thanks,
Uday