Print to the third file as any of the above.open( FILE1, "file1.txt" ) or die "Unable to open file1.txt\n$!\n"; open( FILE2, "file2.txt" ) or die "Unable to open file2.txt\n$!\n"; my %hash; @hash{ map{ chomp; $_ } <FILE1> } = map { chomp; $_; } <FILE2>
In reply to Re: adding text from different txt file into hash
by Transient
in thread adding text from different txt file into hash
by MrChat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |