# Making an entry in the errordb push (@{$errordb->{$_BranchName}->{MissingTitle}->{url}}, $_URL); #Increasing the counter $errordb->{$_BranchName}->{MissingTitle}->{count} +=1; #### foreach $testurl (@{$errordbref ->{$_BranchName}->{$ThingsToPrint}->{url}}) print $testurl;