HTML::TreeBuilder
Hi, my problem: I am parsing a html page looking for table-tags. The Treebuilder has a look_down function: $tree-look_down(_tag,table);#lists all tables in the html $tree-look_down(_tag,table, width,170);#lists all tables in the html with width 170 However, how can I list all tables that have no attributes? Ie somehow listing tag attributes and checking that the @list == 0? Regards, Torbjørn Lindahl ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
working with array references.
Hi list, given an array reference in a hash, how can I append an item to the end of that array? Or find the length so that I can assign it using $ref-[$n] type notation? I have tried various comboes... $hash{$key} holds a reference to an array in the sample code presented. *) push(@$hash{$key},$item); # --- gives an error message, not a valid array for push *) $hash{$key}-[scalar $hash{$key}]=$item; #no good either *) $hash{$key}-[scalar @$hash{$key}]=$item; #no good *) $hash{$key}-[scalar @{[$hash{$key}]}]=$item; #no good either The following notation turned out to work though... my $r=$hash{$key}; my @l=@$r; $hash{$key}-[scalar @l]=$item; ...but I dont like the idea of _having_ to use those extra lines of code there, there should be a way to append an item to a list reference in one single operation. Regards, Torbjørn Lindahl ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Browse local LAN
Hi list, what module should I use to browse file shares on our home LAN? I tried simply 'opendir(DIR,\\server\share)', also with escaped \'s, but it wouldnt do the trick. Searching for 'net'-modules yields 1000 answers, I will be greatfull for any pointers! Regards, Torbjørn Lindahl ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs