#!/usr/bin/perl -w use strict; open(FH, ") { my $key = join "", (split/:/)[13,21]; %recs = ($key => $_); }