أحمد محمد زواوي - Ahmad M. Zawawi > Parse-ErrorString-Perl > Parse::ErrorString::Perl

Download:
Parse-ErrorString-Perl-0.19.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.19   Source   Latest Release: Parse-ErrorString-Perl-0.21

NAME ^

Parse::ErrorString::Perl - Parse error messages from the perl interpreter

SYNOPSIS ^

    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";
    }

METHODS ^

new(lang => $lang)

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.

parse_string($string)

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.

SEE ALSO ^

splain

ACKNOWLEDGEMENTS ^

Part of this module is based on code from splain.

BUGS ^

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.

SUPPORT ^

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

    perldoc Parse::ErrorString::Perl
syntax highlighting: