File: Datahub.pm

package info (click to toggle)
libcatmandu-fix-datahub-perl 0.03-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 120 kB
  • sloc: perl: 99; makefile: 9
file content (67 lines) | stat: -rw-r--r-- 1,138 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package Catmandu::Fix::Datahub;

use strict;
use 5.008_005;
our $VERSION = '0.03';

1;
__END__

=encoding utf-8

=head1 NAME

=for html <a href="https://travis-ci.org/thedatahub/Catmandu-Fix-Datahub"><img src="https://travis-ci.org/thedatahub/Catmandu-Fix-Datahub.svg?branch=master"></a>

Catmandu::Fix::Datahub - Utility functions and generic fixes developed for the Datahub project

=head1 SYNOPSIS

L<Catmandu::Fix::Datahub::Util>:

  use Catmandu::Fix::Datahub::Util;

L<Catmandu::Fix::Bind::each>:

  do each(path: demo, var: d)
    
    copy_field(d.key, var.$append)
  
  end

=head1 DESCRIPTION

=head2 L<Catmandu::Fix::Datahub::Util>

Utility functions for use in Catmandu fixes.

=over 4

=item C<declare_source($fixer, $var, $declared_var)>

=item C<walk($fixer, $path, $key, $h)>

=back

=head2 L<Catmandu::Fix::Bind::each>

A bind to iterate over a hash.

=head1 AUTHOR

Pieter De Praetere E<lt>pieter@packed.beE<gt>

=head1 COPYRIGHT

Copyright 2017- PACKED vzw

=head1 LICENSE

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.

=head1 SEE ALSO

L<Catmandu>

=cut