in reply to Derefferencing the out put from XMLin()

Will this solver your problem?
Change this ...
my @users = @$user_hash{SERVICE}->{$service}->{USER};
... to ...
my $users = @$user_hash{SERVICE}->{$service}->{USER};
... and this line ...
foreach my $this_user (@users){
... to this ...
foreach my $this_user (@{$users}){
... Hope that helps.

Plankton: 1% Evil, 99% Hot Gas.