Text::Xslate::HashWithDefault(3pm)

Text::Xslate::HashWithDefault3pm

Helper class to fill in default values

Usage

    use Text::Xslate::Util qw(hash_with_default);
    my $hash_ref = hash_with_default({ }, sub { "FILLME('@_')" });
    print $hash_ref->{foo}; # FILLME('foo')

Overview

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

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

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

From libtext-xslate-perl 3.5.9-2+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.