Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

HTML::HTML5::Parser weirdness

by djh (Novice)
on Feb 23, 2020 at 16:06 UTC ( #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
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? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2020-08-05 05:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (35 votes). Check out past polls.

    Notices?