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
warn will have its output prefixed with the package, file and line of the
Load it in your program:
or from the command line:
perl -MDevel::Ditto myprog.pl
BUGS AND LIMITATIONS
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.
LICENCE AND COPYRIGHT
Copyright (c) 2009, Andy Armstrong
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.