File: expand.pm

package info (click to toggle)
libcatmandu-perl 0.9206-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,768 kB
  • ctags: 512
  • sloc: perl: 7,798; makefile: 34
file content (28 lines) | stat: -rw-r--r-- 405 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package Catmandu::Fix::expand;

use Catmandu::Sane;
use Moo;
use CGI::Expand ();

sub fix {
    CGI::Expand->expand_hash($_[1]);
}

=head1 NAME

Catmandu::Fix::expand - convert a flat hash into nested data using the TT2 dot convention

=head1 SYNOPSIS

   # collapse the data into a flat hash
   collapse()
   # expand again to the nested original
   expand()

=head1 SEE ALSO

L<Catmandu::Fix>

=cut

1;