Don't do this:... (In the code as written, the value can never be anything but 1.)$result{$key} = 1; $result{$key}++;
Sorry, that's wrong.
$ perl -E '$key = "wrong"; $result{$key} = 1; $result{$key}++; say val +ues %result'
2
In reply to Re^2: find common data in multiple files
by 1nickt
in thread find common data in multiple files
by mao9856
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |