Print::Indented - Indent outputs indented as per source code indentation
use Print::Indented; print "foo\n"; # prints "foo" { print "bar\n"; # prints " bar"; }
Print::Indented indents stdout/stderr outputs according to the source line indentation where print function called, ex. print, warn.
print
warn
Copyright (C) motemen.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
motemen <motemen@gmail.com>
To install Print::Indented, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Print::Indented
CPAN shell
perl -MCPAN -e shell install Print::Indented
For more information on module installation, please visit the detailed CPAN module installation guide.