Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
@mainarr contains all the three arrrays. How can i check whether an element is present in the mainarr? For single arrays we can use like@arr1=(1,2,3,4,5); @arr2=(6,7,8,9,10); @arr3=(11,12,13,14,15);
.... can anyone suggest something similar to that??????grep(/tofind/i,@arr)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to check whether an element is present in an array of array
by kilinrax (Deacon) on Jun 05, 2009 at 10:59 UTC | |
|
Re: How to check whether an element is present in an array of array
by dpetrov (Acolyte) on Jun 05, 2009 at 11:24 UTC | |
|
Re: How to check whether an element is present in an array of array
by irah (Pilgrim) on Jun 05, 2009 at 10:44 UTC | |
|
Re: How to check whether an element is present in an array of array
by bichonfrise74 (Vicar) on Jun 05, 2009 at 15:44 UTC | |
|
Re: How to check whether an element is present in an array of array
by Anonymous Monk on Jun 05, 2009 at 10:40 UTC |