Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 sharing their wisdom with the Monastery: (9)
As of 2024-03-28 12:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found