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

Net::SixXS::Diag - a role for displaying diagnostic messages

SYNOPSIS

  use Moose;

  with 'Net::SixXS::Diag';

  sub debug($ $) {
      my ($self, $s) = @_;

      warn ref($self)." diagnostics: $s\n";
  }

DESCRIPTION

The Net::SixXS::Diag role guarantees the existence of a single method named debug. It is supposed to take a single parameter - a text string - and, well, do something with it. The exact details of what is done to the string and whether anything is done with it at all are left to the classes implementing the role.

METHODS

As noted above, Net::SixXS::Diag expects a single method called debug; the Net::SixXS class hierarchy will call that method with a single text string as a parameter.

SEE ALSO

Net::SixXS::Diag::None, Net::SixXS::Diag::MainDebug

LICENSE

Copyright (C) 2015 Peter Pentchev <roam@ringlet.net>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Peter Pentchev <roam@ringlet.net>