To populate your hash, change
$words{$key} .= exists $words{$key} ? "$val" : $val;
to
$words{$key} = $val;
-- Ken
In reply to Re: Compare two file text input, compare it, replace and write new file
by kcott
in thread Compare two file text input, compare it, replace and write new file
by wa2nlinux
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |