in reply to Re^2: Merge the difference between two files and save it on the first file. Also update the first file with info in second file.
in thread Merge the difference between two files and save it on the first file. Also update the first file with info in second file.

when I wrote that, the author didnt clarify
the tasks clearly yet
if he needs select the name before "="
i would go with code:
%hash = map {/=(\w+)/; $` => $1} <DATA>; foreach (sort keys %hash){ print "$_ $hash{$_}\n"; } __DATA__ A=hello B=world B=planet C=universe
  • Comment on Re^3: Merge the difference between two files and save it on the first file. Also update the first file with info in second file.
  • Download Code