open LOG, '<', 'the/log' or die $!; my %hash = do{ local $/; split ' ', }; close LOG;