in reply to Re^3: Comparing two arrays...
in thread Comparing two arrays...

your misinterpreting this test, all $services will seemingly "match", just try my @ServicesOnMachine=("nonsense").

The first argument to grep is a boolean condition, your putting a string there which evaluates to true.

Cheers Rolf

Replies are listed 'Best First'.
Re^5: Comparing two arrays...
by wallisds (Beadle) on Apr 21, 2011 at 14:05 UTC
    I corrected the bad answers. Thanks for helping me to understand the mistake. :)