in reply to If exists (hash)
{$image = "$web$xml->{result}->{covers}->{1}->{content}";} else{$image = "$web$xml->{result}->{covers}"}
Have you read the FAQ:
What's wrong with always quoting "$vars"?
Do you really need to make a copy of $web$xml->{result}->{covers}->{1}->{content} or $web$xml->{result}->{covers}?
In Section
Seekers of Perl Wisdom