open(STATS, "/path/to/file") or die "Couldn't open file: $!"; my %file = split /\|/, scalar ; close STATS;