| 1 |
NAME |
| 2 |
|
| 3 |
Parse::ErrorString::Perl - Parse error messages from the perl interpreter |
| 4 |
|
| 5 |
SYNOPSIS |
| 6 |
|
| 7 |
use Parse::ErrorString::Perl; |
| 8 |
|
| 9 |
my $parser = Parse::ErrorString::Perl->new; |
| 10 |
# or: my $parser = Parse::ErrorString::Perl->new(lang => 'FR') |
| 11 |
# to get localized explanations |
| 12 |
my @errors = $parser->parse_string($string_containing_stderr_output); |
| 13 |
|
| 14 |
foreach my $error(@errors) { |
| 15 |
print 'Captured error message "' . |
| 16 |
$error->message . |
| 17 |
'" in file ' . $error->file . |
| 18 |
' on line ' . $error->line . "\n"; |
| 19 |
} |
| 20 |
|
| 21 |
INSTALLATION |
| 22 |
|
| 23 |
To install this module, run the following commands: |
| 24 |
|
| 25 |
perl Makefile.PL |
| 26 |
make |
| 27 |
make test |
| 28 |
make install |
| 29 |
|
| 30 |
ACKNOWLEDGEMENTS |
| 31 |
|
| 32 |
Part of this module is based on code from L<splain|http://perldoc.perl.org/splain.html>. |
| 33 |
|
| 34 |
SUPPORT |
| 35 |
|
| 36 |
You can find documentation for this module with the perldoc command. |
| 37 |
|
| 38 |
perldoc Parse::ErrorString::Perl |
| 39 |
|
| 40 |
AUTHOR |
| 41 |
|
| 42 |
Petar Shangov, <pshangov at yahoo.com> |
| 43 |
|
| 44 |
COPYRIGHT |
| 45 |
|
| 46 |
Copyright 2008-2013 The Padre development team as listed in Padre.pm. |
| 47 |
L<http://padre.perlide.org/> |
| 48 |
|
| 49 |
LICENSE |
| 50 |
|
| 51 |
This program is free software; you can redistribute it and/or |
| 52 |
modify it under the same terms as Perl 5 itself. |
| 53 |
|
| 54 |
DISCLAIMER OF WARRANTY |
| 55 |
|
| 56 |
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY |
| 57 |
FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN |
| 58 |
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES |
| 59 |
PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER |
| 60 |
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 61 |
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE |
| 62 |
ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH |
| 63 |
YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL |
| 64 |
NECESSARY SERVICING, REPAIR, OR CORRECTION. |
| 65 |
|
| 66 |
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
| 67 |
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR |
| 68 |
REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE |
| 69 |
LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, |
| 70 |
OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE |
| 71 |
THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING |
| 72 |
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A |
| 73 |
FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF |
| 74 |
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF |
| 75 |
SUCH DAMAGES. |