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; ...
In reply to Re: Hash from a file
by mwah
in thread Hash from a file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |