or download this
next unless $line =~ m{^(\S+) (\d+) (.*)};
my ($site, $userID, $data, $data2) = ($1, $2, $3, $4);
...
$user{$userID}{$site} = $data, $data2;
# $data2 is useless and I think you are trying to use an array ref
# but that is not what you are doing [ ] signifies an array ref