in reply to Pulling out pairs
while (<>) { next unless /^([^:]+):(.*)/; my ($name, $value) = ($1, $2); ... [download]