i tried to simply insert my files instead. on the command line it didnt print anything. no syntax errors. been working through possible edits.
open(FILE1, $ARGV[0]) or die "Cannot open the file: $!"; my %hash1 = split ' ', do{ local $/; <FILE1> }; close FILE1; open(FILE2, $ARGV[1]) or die "Cannot open the file: $!"; while(<FILE2>) { my ($key) = split; exists $hash1{$key} and print "$key $hash1{$key}\n"; } close FILE2;
In reply to Re^4: Retrieving Key and Value Hashes
by gghelpneeded
in thread Retrieving Key and Value Hashes
by gghelpneeded
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |