my @details3 = $dom2->find("div[id=test]")->each( sub { if ( $_->text =~ /KF:/ ) { my ($konf) = $_->text =~ m/(KF:)\s(\d+)/; say $konf; } });