I have a subroutine needed to read file and store data in a hash in Perl
while ( $input = <file> ) { # Reading Line by line
    for my $term ( split /[=]/, $input ) {
        my ($value, $newkey) = ($term =~ /(.*?) (\S+)$/);
        $record{$key} = $value;
        $key = $newkey; 
    }
I need to write same in shell. So far I can split the data, but can't put or retrieve from a hash.
 
     
    