perl -le '$_="port: 8888";$hash1{$1}=$2 if m/(.*)\s*:\s*(.*)/;print $h +ash1{port}' 8888 [download]
In reply to Re: Read a file into a hash by suhailck in thread Read a file into a hash by fritz1968