- COPYRIGHT AND LICENSE
Message::Stack::Parser::DataVerifier - Add messages to a Message::Stack from a Data::Verifier results
use Message::Stack::Parser::DataVerifier; my $dv = Data::Verifier->new; my $dv_results = $dv->verify; my $scope = 'login'; # Pass a Data::Verifier::Results object to parse. my $ms = Message::Stack->new; Message::Stack::Parser::DataVerifier::parse( $ms, $scope, $dv_results ); # and now $ms has messages based on $dv_results
The fields are mapped from Data::Verifier into a Message in the following way:
- msgid =
- scope = The passed in scope
- subject =
- level = 'error'
- params = The original value (that provided by the user) for the field.
Adds messages from the provided
$results to the provided
$stack under the
$scope that is passed in.
Cory G Watson <firstname.lastname@example.org>
This software is copyright (c) 2012 by Cold Hard Code, LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.