$mounts{ "$directory/$entry" }++; #### $mounts{ "$directory/$entry" } = 1; #### my @mounts = keys %mounts;