There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

new

Constructs a debug printer object.

AUTOLOAD

Logs all calls to the printer object.

as_perl_code

Returns all calls to the printer as perl code.