mmittiga17 has asked for the wisdom of the Perl Monks concerning the following question:
Hi All, is there a way to check the existence of multiple elements in an array? If array has 10 elements but I need to make sure 3 specific elements exist before I have script do something.
Thanks in advance!!!!@FILES=("ABC","DEF","GHI","JKL","MNO","PQR","STU"); if ABC & GHI & MNO all exist in @FILES do something else do something else
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Check Array Elements
by toolic (Bishop) on Jun 06, 2012 at 21:18 UTC | |
Re: Check Array Elements
by davido (Cardinal) on Jun 06, 2012 at 22:09 UTC | |
Re: Check Array Elements
by morgon (Priest) on Jun 06, 2012 at 21:26 UTC | |
Re: Check Array Elements
by ckj (Chaplain) on Jun 07, 2012 at 05:46 UTC | |
Re: Check Array Elements
by kcott (Archbishop) on Jun 07, 2012 at 00:38 UTC | |
Re: Check Array Elements
by NetWallah (Canon) on Jun 06, 2012 at 22:25 UTC | |
by morgon (Priest) on Jun 06, 2012 at 22:41 UTC | |
by NetWallah (Canon) on Jun 07, 2012 at 05:56 UTC | |
by stevieb (Canon) on Jun 07, 2012 at 06:50 UTC |
Back to
Seekers of Perl Wisdom