Catmandu::Fix::Datahub - Utility functions and generic fixes developed for the Datahub project
Contents
Copyright
Copyright 2017- PACKED vzw
Description
use Catmandu::Fix::Datahub::Util;
"declare_source($fixer, $var, $declared_var)"
For an item $var, which is a path (as a string) in a Catmandu fix, assign the value at the path to
$declared_var, which is a variable that was previously declared in the fix code:
my $f_var = $self->fixer->generate_var();
$code .= "my ${f_var};";
$code .= declare_source($self->fixer, 'foo.bar', $f_var);
"walk($fixer, $path, $key, $h)"
Walk through a $path (as an arrayref) until at $key. Assign the value of $key to $h. $h must be
declared in the fix code.
my $f_var = $self->fixer->generate_var();
$code .= "my ${f_var};";
$code .= walk($self->fixer, ['foo', 'bar'], $f_var);
License
This library is free software; you can redistribute it and/or modify it under the same terms as Perl
itself.
Name
Catmandu::Fix::Datahub - Utility functions and generic fixes developed for the Datahub project
See Also
Catmandu
perl v5.36.0 2023-02-03 Catmandu::Fix::Datahub::Util(3pm)
Synopsis
use Catmandu::Fix::Datahub::Util;
