User Type in Input in File1. File2 Runs to See if The String Matches Strings in Hash
Hi, all. I'm still new with perl. Questions:
file1 is where user can type in inputs.
file2 contains hash where
'a' => 1, 'b' => 2, 'c' => 3
I need to write a script in file2 which can take the input from file1 and compare with strings in hash in file2.
If the input from file1 are
file2 will display output
How do I take input from file1? I'm thinking of copying file1 to file2 but maye it's not right.
Thanks in advance.