File: MyModule.pm

package info (click to toggle)
libmoox-role-logger-perl 0.005-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, trixie
  • size: 204 kB
  • sloc: perl: 207; makefile: 12
file content (20 lines) | stat: -rw-r--r-- 210 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use strict;
use warnings;

package MyModule;

use Moo;
with 'MooseX::Role::Logger';

sub run {
    my ($self) = @_;
    $self->cry;
}

sub cry {
    my ($self) = @_;
    $self->_logger->info("I'm sad");
}

1;