'binary files' in mechanize

2004-10-15 Thread Gedanken
im having a devil of a time debugging this. I have two nearly identical requests for a up-to-now working module. Some requests come back just fine. Others come back as a stream of binary junk. The file is the correct size however, and since the requests are nearly identical, i suspect tha

Re: Help parsing an HTML Doc using HTML::TreeBuilder

2004-10-15 Thread Robert G. Werner
Hill, Ronald wrote: [snip] my $realtable = $tree->look_down( '_tag', 'table', sub { my $table = $_[0]->look_down('_tag','table'); return 1 if $table->attr('cellpadding') =~ m{/6/}; return 0; # ot

Help parsing an HTML Doc using HTML::TreeBuilder

2004-10-15 Thread Hill, Ronald
Hi All, I am having a hard time extracting data from an HTML file I am downloading from the web. What I want to do is extract the name and jersey number from a soccer web page. Here is what I have tried: #!/usr/bin/perl use strict; use warnings; use LWP::UserAgent; use HTML::TreeBuilder; my $ua