in reply to how to print div tag value with a href tag in perl
Try ->map('all_text') instead of ->map('text')