Text::Xslate::HashWithDefault - Helper class to fill in default values
use Text::Xslate::Util qw(hash_with_default); my $hash_ref = hash_with_default({ }, sub { "FILLME('@_')" }); print $hash_ref->{foo}; # FILLME('foo')
This is a helper class to provide hash_with_default() functionality, which is useful for debugging.
hash_with_default()
See Text::Xslate::Manual::Debugging for details.
To install Text::Xslate, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Xslate
CPAN shell
perl -MCPAN -e shell install Text::Xslate
For more information on module installation, please visit the detailed CPAN module installation guide.