in reply to Hash from a file
You can verify with:... my %hash; open my $fh,'<', 'input.txt' or die "with style ($!)"; %hash = map /^Data_Type:([\S]+)\s*([^\n]+)/, <$fh>; # all happens her +e close $fh; ...
Regards... print "$_ = > $hash{$_}\n" for keys %hash; ...
|
|---|