in reply to Re^3: Comparing an array against another array
in thread Comparing an array against another array
diff seems to be just what I need, thanks a lot. Is my only option perl5i to use the diff method? Or does anyone know why I'm getting this error? Can't call method "diff" without a package or object reference at backtick.pl line 8.
my $hostname = $ARGV[0]; my @hostFiles = ("filecheck.pl", "hostscript.pl"); my @output =`ssh $hostname "cd Desktop; ls -a"`; my @diff = @hostFiles->diff(\@output); . . .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Comparing an array against another array
by CountZero (Bishop) on Jan 18, 2012 at 07:16 UTC |