use strict; use warnings; use Data::Dumper; my %hash = map {chomp; split /: */} ; print Dumper \%hash; __DATA__ natural number: a non-negative integer counting number: a positive integer rational number: a real that can be expressed as a fraction