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

Re: How to parse not closed HTML tags that don't have any attributes?

by marto (Cardinal)
on Mar 06, 2021 at 20:01 UTC ( [id://11129209]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    cat dragnet.pl 
    #!/usr/bin/perl
    ...
    say $phone;
    my $fax = $dom->at('div.phone > p:nth-of-type(4)')->text;
    say $fax;
    
  2. or download this
    0123-4 56 78 90
    just the fax ma'am
    
  3. or download this
    #!/usr/bin/perl
    use strict;
    ...
    say $phone;
    my $fax = trim( $dom->at('div.phone > p:nth-of-type(4)')->text );
    say $fax;
    
  4. or download this
    0123-4 56 78 90
    just the fax ma'am
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-03-29 15:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found