FieldParser - A generic parser.
Version 0.01
A generic parser made on the principles of Higher Order Programming.The parser is meant to parse the input and store the parsed text in a hashref.
use FieldParser;
my $interesting_tags = ['requestType', 'serviceUrl'];
my $input = '"<serviceUrl>" "http://d.com" "</serviceUrl>" "<requestType>" "AIS" "</requestType>"'
my $parsed = FieldParser::parser($input, $interesting_tags);
parser (default export)
tokenizer (ondemand export)
weeder (ondemand export)
extractor (ondemand export)
Syntactic sugar for iterator functionality. Not intended for direct use.
Convert raw input string into units of interest.Weedout and ignore text not needed.
Sanitize input - remove weeds/unwanted text
Extract tokens embedded between specific tags.One can extract tokens between a specific tag or ask for all tokens embedded between all tags of interest.
Intended interface to the outside unsuspecting world.Takes in the raw input, interested tags, token separator(regexp), unwanted text in tokens(regexp), unwanted tokens and all unwanted tokens between specific tags.
Varun Juyal, <varunjuyal123 at yahoo.com>
<varunjuyal123 at yahoo.com>
Please report any bugs or feature requests to bug-fieldparser at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=FieldParser. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-fieldparser at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc FieldParser
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=FieldParser
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/FieldParser
CPAN Ratings
http://cpanratings.perl.org/d/FieldParser
Search CPAN
http://search.cpan.org/dist/FieldParser/
Copyright 2013 Varun Juyal.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install HPPPM::Demand::Management, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HPPPM::Demand::Management
CPAN shell
perl -MCPAN -e shell install HPPPM::Demand::Management
For more information on module installation, please visit the detailed CPAN module installation guide.