Data::Scan::Printer - Example of a printer consumer for Data::Scan
version 0.009
use strict; use warnings FATAL => 'all'; use Data::Scan::Printer; my $this = bless([ 'var1', 'var2', {'a' => 'b', 'c' => 'd'}, \undef, \\undef, [], sub { return 'something' } ], 'TEST'); local %Data::Scan::Printer::Option = (with_deparse => 1); dspp($this);
Data::Scan::Printer is polluting user's namespace with a dspp() method, showing how Data::Scan can be used to dump an arbitrary structure. This is a sort of Data::Printer alternative.
Print to Data::Scan::Impl::Printer's handle a dumped vision of @arguments. An instance of Data::Scan::Impl::Printer is created automatically, using parameters that have to be available in %Data::Scan::Printer::Option. Please refer to Data::Scan::Impl::Printer documentation for the available options.
Data::Scan, Data::Scan::Impl::Printer
Jean-Damien Durand <jeandamiendurand@free.fr>
This software is copyright (c) 2016 by Jean-Damien Durand.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Data::Scan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Scan
CPAN shell
perl -MCPAN -e shell install Data::Scan
For more information on module installation, please visit the detailed CPAN module installation guide.