VarPrint - display complex variables on STDOUT
use Data::VarPrint; VarPrint($var1, $var2,... );
or
use Data::VarPrint; VarPrint( { var1 => $var1, var2 => $var2,... } );
use Data::VarPrint; my $var_string = VarPrintAsString(...);
Data::VarPrint module contains two functions: VarPrint and VarPrintAsString.
Function VarPrint displays its arguments' values. The output is structured, so that complex structures (combinations of hash and array references) are presented in a way which makes them easy to read.
Function VarPrintAsString returns the same output as a string, which can be usefull with error logs.
VarPrint and VarPrintAsString take list of variables as arguments.
Copyright (c) 2002 V. Sego, vsego@math.hr. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Data::VarPrint, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::VarPrint
CPAN shell
perl -MCPAN -e shell install Data::VarPrint
For more information on module installation, please visit the detailed CPAN module installation guide.