Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: examine cell's content in HTML::TableExtract

by Cristoforo (Curate)
on Mar 26, 2018 at 19:24 UTC ( [id://1211779]=note: print w/replies, xml ) Need Help??


in reply to examine cell's content in HTML::TableExtract

Perhaps marto has given the better way as I'm not familiar with Mojo::DOM. You might try to get rid of all the text after a carriage return.
for my $rox ($table->rows) { print join(',' , map {s/\n.*//sr} @$rox), "\n"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1211779]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-16 12:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found