use Fatal qw/open/; my %h; open my $fh, '<', '/tmp/file1'; while ( defined ($_ = <$fh>)){ /^([\d.]+)/ and $h{$1}++; } open $fh, '<', '/tmp/file2'; while ( defined ($_ = <$fh>)){ /^([\d.]+)/ and delete $h{$1}; } print join "\n", keys %h;
In reply to Re: comparing two arrays
by borisz
in thread comparing two arrays
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |