Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Question about footnote in the Llama book

by munchie (Monk)
on Feb 18, 2002 at 02:43 UTC ( #146089=perlquestion: print w/replies, xml ) Need Help??

munchie has asked for the wisdom of the Perl Monks concerning the following question:

On page 110 in the Learning Perl (3rd Edition)(2nd footnote):
These examples are intentionally not HTML, because there are too many tricks things that crop up in real HTML, or any similar language like XML or SGML. If you need to work with HTML, don't use simple patterns like these. Get a rhobust module from CPAN, so that you can start with code that's already written and debugged. If you don't, we promise that you'll be sorry. Don't say we didn't warn you.

My question is simply: Is there a particular module they had in mind (merlyn... :-) ), and if not, any recommendations for good HTML modules?

> munchie, the number munchin newb
Llama: The other other white meat!
(you had to be there :-P)

  • Comment on Question about footnote in the Llama book

Replies are listed 'Best First'.
Re: Question about footnote in the Llama book
by dvergin (Monsignor) on Feb 18, 2002 at 03:56 UTC
    As Kanji says, HTML::Parser is the most common choice for parsing HTML.

    Another option that is good in some situations is HTML::TokeParser which uses a different (and some say easier) approach.

    HTML::TableExtract is also handy for the more specific task of grabbing text from HTML tables.

Re: Question about footnote in the Llama book
by chipmunk (Parson) on Feb 18, 2002 at 04:25 UTC
    Another useful module for parsing HTML is HTML::TreeBuilder. I like this module because it parses the whole document at once, and then returns a nicely structured tree that you can walk. It's a different approach from the other common HTML parsing modules.
Re: Question about footnote in the Llama book
by Kanji (Parson) on Feb 18, 2002 at 03:03 UTC

    I don't have a recent edition of the Llama, but if you're referring to HTML parsing then you'll want to take a look at HTML::Parser (alt.).


Re: Question about footnote in the Llama book
by jerrygarciuh (Curate) on Feb 18, 2002 at 03:54 UTC
    Well the most obviously useful module for creating HTML is . I am currently reading the 2nd ed. of the Mouse book, and it is great (esp. as compared to 1st ed. which is way outdated).

    You might also want to read this thread which has quite a bit of discussion of the templating modules HTML::Mason and HTML::Template.

    It's not my tree.
Re: Question about footnote in the Llama book
by tachyon (Chancellor) on Feb 18, 2002 at 20:46 UTC

    For some HTML::Parser example scripts use the Super Search form I have pre-filled in for you here




Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://146089]
Approved by root
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2022-07-01 08:08 GMT
Find Nodes?
    Voting Booth?
    My most frequent journeys are powered by:

    Results (98 votes). Check out past polls.