The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

FieldParser - A generic parser.

VERSION

Version 0.01

SYNOPSIS

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);

EXPORT

parser (default export)

tokenizer (ondemand export)

weeder (ondemand export)

extractor (ondemand export)

SUBROUTINES

Iterator

Syntactic sugar for iterator functionality. Not intended for direct use.

tokenizer

Convert raw input string into units of interest.Weedout and ignore text not needed.

weeder

Sanitize input - remove weeds/unwanted text

extractor

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.

parser

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.

AUTHOR

Varun Juyal, <varunjuyal123 at yahoo.com>

BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc FieldParser

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

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.