NAME Data::Format::Pretty::Perl - Pretty-print data structure as Perl code VERSION This document describes version 0.060 of Data::Format::Pretty::Perl (from Perl distribution Data-Format-Pretty-Perl), released on 2018-01-14. SYNOPSIS use Data::Format::Pretty::Perl qw(format_pretty); print format_pretty($data); Some example output: * format_pretty({a=>1, b=>2}) { a => 1, b => 2 } DESCRIPTION This module uses Data::Dump or Data::Dump::Color to format data as Perl code. FUNCTIONS format_pretty($data, \%opts) Return formatted data structure as Perl code. Options: * color => BOOL Whether to enable coloring. The default is the enable only when running interactively. Currently also enable line numbering. * linum => BOOL (default: 0) Whether to add line numbers. content_type() FAQ ENVIRONMENT COLOR => BOOL Set "color" option (if unset). LINUM => BOOL Set "linum" option (if unset). HOMEPAGE Please visit the project's homepage at . SOURCE Source repository is at . BUGS Please report any bugs or feature requests on the bugtracker website When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. SEE ALSO Data::Format::Pretty AUTHOR perlancar COPYRIGHT AND LICENSE This software is copyright (c) 2018, 2014, 2013, 2012 by perlancar@cpan.org. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.