in reply to Re: Putting text file into a hash
in thread Putting text file into a hash
But the above code will not handle error conditions.perl -MData::Dumper -e 'my ($Key,$Value) = split (/:/) ; $hash{$Key} = + $Value ;END{print Dumper \%hash};' -ln 'filename'
|
|---|