Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Weird Date::Manip DateParse fail

by snax (Hermit)
on Sep 29, 2017 at 02:09 UTC ( [id://1200341]=note: print w/replies, xml ) Need Help??


in reply to Re: Weird Date::Manip DateParse fail
in thread Weird Date::Manip DateParse fail

Thank you for this. I'm trying to capture some table data and the $#160 source elements (which are translated to nbsp elements when inspecting the HTML::Element as_HTML() output) come through in HTML::Element's as_text() method as weird characters, and I couldn't figure out how to clean them with regexes. Now I just

my $el = $_->as_text(); my $nbsp = chr(160); $el =~ s/$nbsp/ /g;

and all is well :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2026-01-24 18:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (126 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.