The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Data::Sah::Filter::perl::Str::replace_map - Replace (map) some values with (to) other values

VERSION

This document describes version 0.005 of Data::Sah::Filter::perl::Str::replace_map (from Perl distribution Data-Sah-Filter), released on 2020-05-30.

SYNOPSIS

Use in Sah schema's prefilters (or postfilters) clause:

 ["str","prefilters",["Str::replace_map"]]

DESCRIPTION

This filter rule can be used to replace some (e.g. old) values to other (e.g. new) values. For example, with this rule:

 [replace_map => {burma => "myanmar", siam => "thailand"}]

then "indonesia" or "myanmar" will be unchanged, but "burma" will be changed to "myanmar" and "siam" will be changed to "thailand".

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Data-Sah-Filter.

SOURCE

Source repository is at https://github.com/perlancar/perl-Data-Sah-Filter.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Sah-Filter

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

SEE ALSO

Complete::Util's complete_array_elem also has a replace_map option.

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2020 by perlancar@cpan.org.

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