use strict; my %calhash; while () { # Should be ?? chomp; my ($value, $key) = split(/;/, $_); $calhash{$key} = $value; }