Pinto
view release on metacpan or search on metacpan
lib/Pinto/Util.pm view on Meta::CPAN
sub debug {
my ($it) = @_;
# TODO: Use Carp instead?
return 1 if not $ENV{PINTO_DEBUG};
$it = $it->() if ref $it eq 'CODE';
my ( $file, $line ) = (caller)[ 1, 2 ];
print {*STDERR} "$it in $file at line $line\n";
return 1;
}
#-------------------------------------------------------------------------------
sub whine {
my ($message) = @_;
( run in 1.828 second using v1.01-cache-2.11-cpan-800906f7e73 )