App-SimulateReads

 view release on metacpan or  search on metacpan

lib/App/SimulateReads/Base.pm  view on Meta::CPAN

21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
BEGIN {
        $SIG{'__DIE__'} = sub {
                if($^S) {
                        return;
                }
                Carp::confess(@_) if $ENV{DEBUG};
                die(@_);
        };
}
 
binmode STDERR, ":encoding(utf8)";
our $LOG_VERBOSE = 1;
 
sub log_msg {
        my ($msg) = @_;
        return if not defined $msg;
        chomp $msg;
        say STDERR $msg if $LOG_VERBOSE;
}
 
sub import {



( run in 0.228 second using v1.01-cache-2.11-cpan-2b0bae70ee8 )