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

Hi I need to parse html document.
Is there a module that provides subroutines to find element by id or class or its name?
And I would like to use core modules if possible

Replies are listed 'Best First'.
Re: Core module to parse html
by hippo (Archbishop) on Feb 04, 2015 at 23:35 UTC

    It isn't a core module, but I would probably start by considering HTML::DOM for this since it has handy methods like getElementById, getElementsByName and getElementsByClassName which pretty much covers your spec here.

Re: Core module to parse html
by Anonymous Monk on Feb 04, 2015 at 23:23 UTC
Re: Core module to parse html
by zwon (Abbot) on Feb 05, 2015 at 21:37 UTC
    I recommend you to try Mojo::DOM. It allows you to use CSS selectors, you should like it if you want something similar to jQuery. It is not a core module though.