WWW::EFA::Roles::Printable - makes objects printable
my $thing = WWW::EFA::SomeThing->new(); print $thing->string;
package WWW::EFA::SomeThing; use Moose; with 'WWW::EFA::Roles::Printable'; # provides to_string
This is a generic "to string" method, very similar to YAML::Dump, but a bit more tailored to the architecture of this module. e.g. Class::Date does not print out nicely with YAML::Dump, but does with this method.
Copyright 2011, Robin Clarke, Munich, Germany
Robin Clarke <perl@robinclarke.net>
To install WWW::EFA, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::EFA
CPAN shell
perl -MCPAN -e shell install WWW::EFA
For more information on module installation, please visit the detailed CPAN module installation guide.