1Text::Xslate::HashWithDUesfearulCto(n3tprmi)buted Perl DToecxutm:e:nXtsaltaitoen::HashWithDefault(3pm)
2
3
4
6 Text::Xslate::HashWithDefault - Helper class to fill in default values
7
9 use Text::Xslate::Util qw(hash_with_default);
10
11 my $hash_ref = hash_with_default({ }, sub { "FILLME('@_')" });
12 print $hash_ref->{foo}; # FILLME('foo')
13
15 This is a helper class to provide hash_with_default() functionality,
16 which is useful for debugging.
17
18 See Text::Xslate::Manual::Debugging for details.
19
20
21
22perl v5.38.0 2023-07-21Text::Xslate::HashWithDefault(3pm)