my @new = @array[1, 3];
Or do you have some other criteria than index to determine which array elements should be in the new array?
It helps if you actually describe how the code should decide, and what you have tried so far. See How (Not) To Ask a Question.
In reply to Re: Array element match
by moritz
in thread Array element match
by Kandankarunai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |