Hi All,
I'm a newbie and need help in compare one array with a file. I'm expecting a list which is not present on array. The output I'm expecting is server7 and server8, which I'm not getting now.
@a = qw ( server1 server2 server3 server5 ); open FILE , "file"; @b = <FILE>; close FILE; @c = grep!${{map {$_ ,1}@a}}{$_},@b; print "@c";
reading the file.
$cat file server2 server5 server7 server8
In reply to compare array with file by cinil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |