良い一日、
HTML
でタグのテキストをどのように印刷しますWWW::Mechanize::Firefox
か?
私が試してみました:
print $_->text, '/n' for $mech->selector('td.dataCell');
print $_->text(), '/n' for $mech->selector('td.dataCell');
print $_->{text}, '/n' for $mech->selector('td.dataCell');
print $_->content, '/n' for $mech->selector('td.dataCell');
私はしたくないことを覚えています{innerhtml}
が、それはうまくいきます。
print $_->{text}, '/n' for $mech->selector('td.dataCell');
上記の行は機能しますが、出力は単に複数です/n