#this wil cover strings and input from user #!/usr/bin/perl use strict; my %hash; my $name; my $value; $name = ; chomp($name); $value = ; chomp($value); $hash{$name} = $value; print $hash{$name}; #thats it