Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use LWP::UserAgent; use HTTP::Request; use HTML::TableExtract; my $ua = LWP::UserAgent->new(timeout => 10); my $url = 'http://foo/bar/index.php/acc_details'; my $request = HTTP::Request->new('GET',$url); my $response = $ua->request($request); if ($response->is_success){ my $te = HTML::TableExtract->new ( headers => [ 'host','login']); $te->parse($response->content); foreach my $ts ($te->table_states) { foreach my $row ($ts->rows) { if ($row !~ "disabled"){ print @$row; } } } } the output i am getting now is as below. xyz anand,pradeep abc shiva,magawal cde jpat,mayank but what i need is as below xyz anand xyz pradeep abc shiva abc magawal cde jpat cde mayank
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help in formating the output
by moritz (Cardinal) on Jan 13, 2009 at 09:57 UTC | |
by Anonymous Monk on Jan 13, 2009 at 10:49 UTC | |
by moritz (Cardinal) on Jan 13, 2009 at 11:43 UTC |