Parse::ErrorString::Perl - Parse error messages from the perl interpreter
version 0.14
use Parse::ErrorString::Perl; my $parser = Parse::ErrorString::Perl->new; # or: my $parser = Parse::ErrorString::Perl->new(lang => 'FR') # to get localized explanations my @errors = $parser->parse_string($string_containing_stderr_output); foreach my $error(@errors) { print 'Captured error message "' . $error->message . '" in file ' . $error->file . ' on line ' . $error->line . "\n"; }
Constructor. Receives an optional lang parameter, specifying that error explanations need to be delivered in a language different from the default (i.e. English). Will try to load POD2::$lang::perldiag.
lang
POD2::$lang::perldiag
Receives an error string generated from the perl interpreter and attempts to parse it into a list of Parse::ErrorString::Perl::ErrorItem objects providing information for each error.
Parse::ErrorString::Perl::ErrorItem
splain
Part of this module is based on code from splain.
Please report any bugs or feature requests to bug-parse-errorstring-perl at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Parse-ErrorString-Perl. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-parse-errorstring-perl at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Parse::ErrorString::Perl
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Parse-ErrorString-Perl
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Parse-ErrorString-Perl
CPAN Ratings
http://cpanratings.perl.org/d/Parse-ErrorString-Perl
Search CPAN
http://search.cpan.org/dist/Parse-ErrorString-Perl/
Petar Shangov, <pshangov at yahoo.com>
<pshangov at yahoo.com>
Gabor Szabo http://szabgab.com/
Ahmad M. Zawawi <ahmad.zawawi@gmail.com>
This software is copyright (c) 2010 by Petar Shangov.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Parse::ErrorString::Perl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parse::ErrorString::Perl
CPAN shell
perl -MCPAN -e shell install Parse::ErrorString::Perl
For more information on module installation, please visit the detailed CPAN module installation guide.