assuming @EG01 and @EG02 were empty before the loop. (Otherwise, I'd push to it).@EG01 = ($artefact) x grep {$_ eq 'QT95EG01'} @new2; @EG02 = ($artefact) x grep {$_ eq 'QT95EG02'} @new2;
In reply to Re: check whether a array element is equal to a string.
by JavaFan
in thread check whether a array element is equal to a string.
by ritchie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |