The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

String::Perl::Warnings - Determine if a string looks like a perl warning

SYNOPSIS

  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
  }

DESCRIPTION

String::Perl::Warnings can be used to determine if a string of arbitary text appears to look like a warning generated by perl.

FUNCTIONS

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.

AUTHOR

Chris BinGOs Williams

LICENSE

Copyright © Chris Williams

This module may be used, modified, and distributed under the same terms as Perl itself. Please see the license that came with your Perl distribution for details.

SEE ALSO

http://p3rl.org/perldiag