Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: html parsing

by shmem (Chancellor)
on Mar 22, 2017 at 15:40 UTC ( [id://1185470]=note: print w/replies, xml ) Need Help??


in reply to Re^2: html parsing
in thread html parsing

I'd downvote my answer, if I could, not only for the shameless plug.

Also your assignment is very low value because it explicitly uses $1 when you could have instead captured the value directly (and safer too).

Providing code for that end might significantly improve this subthread.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Replies are listed 'Best First'.
Re^4: html parsing
by Anonymous Monk on Mar 22, 2017 at 15:51 UTC
    I was hoping you would do that. :)
    (my $title) = $res->content =~ m|<title>([^<]+)</title>|i;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-25 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found