Devel::Ditto - Identify where print output comes from
This document describes Devel::Ditto version 0.06
$ perl -MDevel::Ditto myprog.pl [main, t/myprog.pl, 9] This is regular text [main, t/myprog.pl, 10] This is a warning [MyPrinter, t/lib/MyPrinter.pm, 7] Hello, World [MyPrinter, t/lib/MyPrinter.pm, 8] Whappen?
Sometimes it's hard to work out where some printed output is coming from. This module ties STDOUT and STDERR such that each call to print or warn will have its output prefixed with the package, file and line of the print or warn statement.
print
warn
Load it in your program:
use Devel::Ditto;
or from the command line:
perl -MDevel::Ditto myprog.pl
No bugs have been reported.
Please report any bugs or feature requests to bug-devel-Ditto@rt.cpan.org, or through the web interface at http://rt.cpan.org.
bug-devel-Ditto@rt.cpan.org
Andy Armstrong <andy@hexten.net>
<andy@hexten.net>
Copyright (c) 2009, Andy Armstrong <andy@hexten.net>.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install Devel::Ditto, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::Ditto
CPAN shell
perl -MCPAN -e shell install Devel::Ditto
For more information on module installation, please visit the detailed CPAN module installation guide.