Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

HTML::HTML5::Parser weirdness

by djh (Novice)
on Feb 23, 2020 at 16:06 UTC ( [id://11113347]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for my $filename (@files)
    {
    ...
    #next if $filename eq '2020-02-17-00:10:01.html';
        my $doc = $parser->parse_file($BASE_DIR . $filename);
    print "doc=", Dumper($doc), $doc->toString;
    
  2. or download this
    {my home directory}/met-office-datahub/met-office-forecasts/2020-02-17
    +-00:10:01.html
    doc=$VAR1 = bless( do{\(my $o = '93912432739248')}, 'XML::LibXML::Docu
    +ment' );
    <?xml version="1.0" encoding="windows-1252"?>
    <html xmlns="http://www.w3.org/1999/xhtml"><head/><body/></html>
    Can't call method "toString" on an undefined value ...
    
  3. or download this
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11113347]
Approved by stevieb
Front-paged by haukex
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-18 13:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found