| 1 | package IPC::Simple::Util; | ||||||||||
| 2 | 4 | $IPC::Simple::Util::VERSION = '0.03'; | |||||||||
| 3 | 4 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 4 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 4 | ▶ | use base 'Exporter'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 4 | our @EXPORT = qw( | |||||||||
| 9 | debug | ||||||||||
| 10 | ); | ||||||||||
| 11 | |||||||||||
| 12 | sub debug { | ||||||||||
| 13 | 45 | ▶ | if ($ENV{IPC_SIMPLE_DEBUG}) { | ||||||||
|
Subroutine
debug: called CC=2 SCAR=12.4
Pod
undocumented
Branch: 1 branch
| |||||||||||
| 14 | 0 | my $msg = sprintf shift, @_; | |||||||||
| 15 | 0 | my ($pkg, $file, $line) = caller; | |||||||||
| 16 | 0 | my $ts = time; | |||||||||
| 17 | 0 | warn "<$pkg:$line | $ts> $msg\n"; | |||||||||
| 18 | } | ||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | 4 | 1; | |||||||||
| 22 | |||||||||||
| 23 | __END__ | ||||||||||