I think you mean grep /^$service$/, @ServicesOnMachine or grep {$service eq $_} @ServicesOnMachine
Cheers Rolf
In reply to Re^2: Comparing two arrays...
by LanX
in thread Comparing two arrays...
by austin43
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |