String::Perl::Warnings - Determine if a string looks like a perl warning
version 1.16
use String::Perl::Warnings qw(is_warning); while( <> ) { chomp; next unless is_warning($_); # Looks like a warning } while( <> ) { chomp; next if not_warning($_); # Looks like a warning }
String::Perl::Warnings can be used to determine if a string of arbitary text appears to look like a warning generated by perl.
It includes all warnings for every stable perl release from 5.6.0 to 5.20.1.
5.6.0
5.20.1
is_warning
Takes an arbitary string of text and returns a true value if the string looks like a perl warning, a false value otherwise.
not_warning
Takes an arbitary string of text and returns a true value if the string does not look like a perl warning and a false value otherwise.
http://p3rl.org/perldiag
Chris Williams <chris@bingosnet.co.uk>
This software is copyright (c) 2015 by Chris Williams.
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 String::Perl::Warnings, copy and paste the appropriate command in to your terminal.
cpanm
cpanm String::Perl::Warnings
CPAN shell
perl -MCPAN -e shell install String::Perl::Warnings
For more information on module installation, please visit the detailed CPAN module installation guide.