my @links = $mech->find_all_links( text_contains => 'some description etc... ' ); my @urls = map { $_->[0] } @links;