Test::C2FIT::Parse - Parsing of html source, filtering out contents of arbitrary tags.
Normally, you do not use Parse directly.
$parse = new Test::C2FIT::Parse($string,["table","tr","td"]); $parse = new Test::C2FIT::Parse($string,["a"]);
Parse creates a linked list of Parse-Objects, so upon parsing, the original content can be restored (or modified, what the fit framework is actually doing).
Returns the last parse object in the same hierarchy level (table -> table, tr -> tr etc.) or self, if self is the last one.
Returns the first leaf node (=lower hierarchy) or self, if self has no parts.
Returns the text (html markup removed) of the parse object.
Return the part of the input, which came before this parse object.
Returns the tag, including any attributes.
Returns the tag body.
Returns the first Parse object of the next lower hierarchy (e.g. table -> tr, tr -> td etc.)
Returns the closing tag.
Returns the portion of the input, which came after this parse object.
Returns the next Parse object on the same hierarchy level.
Extensive and up-to-date documentation on FIT can be found at: http://fit.c2.com/
To install Test::C2FIT, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::C2FIT
CPAN shell
perl -MCPAN -e shell install Test::C2FIT
For more information on module installation, please visit the detailed CPAN module installation guide.