藤 吾郎 > Text-Xslate-2.0010 > Text::Xslate::HashWithDefault

Download:
Text-Xslate-2.0010.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source   Latest Release: Text-Xslate-3.2.1

NAME ^

Text::Xslate::HashWithDefault - Helper class to fill in default values

SYNOPSIS ^

    use Text::Xslate::Util qw(hash_with_default);

    my $hash_ref = hash_with_default({ }, sub { "FILLME('@_')" });
    print $hash_ref->{foo}; # FILLME('foo')

DESCRIPTION ^

This is a helper class to provide hash_with_default() functionality, which is useful for debugging.

See Text::Xslate::Manual::Debugging for details.

syntax highlighting: