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