I have a text file with two columns like follows
I then have an ID that I want to look up from this file - returning the 2nd column for the first match it finds.
For example, if my ID = “978”, I want it to return “Person2” as I want it to be an exact match against columnA.
ID “9782” would then return “Person3”
Can this be done with a hash and using exist?
(This probably sounds so basic that it reads like a homework question, it’s really not!)