this seems to work, the join is ok, but this is output
data:ARRAY(0x55891cd9c168) ARRAY(0x55891de3a988):0 ARRAY(0x55891de3aac0):55891
its good
but how to remove these ARRAY(......) errors
and also to print out all td info, but am only getting one td info, i want all
<p>data:info john:100 kent:2000</p> <p>data:info ferr:100 tom:2000</p>
and here is my code
#!/usr/bin/perl use strict; use warnings; use HTML::TableExtract; use LWP::UserAgent; my $ua = LWP::UserAgent->new; my $req = HTTP::Request->new(GET => ''); my $res = $ua->request($req); my $html = $res->decoded_content; my $table = HTML::TableExtract->new(); $table->parse($html); my $row = $table->rows; print "Content-type: text/text\n\n"; my $foo = 0; foreach (@$row){ s/\A\s+//; s/\s+\z//; } my ($dat1, $dat2) = ${$row}[2] =~ m/(\d+)\D+(\d+)/; print "data:$row->[0] $row->[1]:$dat1 $row->[3]:$dat2", "\n";
In reply to Re^2: splitting results
by bigup401
in thread splitting results
by bigup401
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |