my @all_tables = $document->querySelectorAll('table'); my $wanted_table = $table[2];