NAME

String::Substitute - generate strings using different combinations of subsitute characters

VERSION

version 0.001

SYNOPSIS

use String::Substitute qw(get_all_substitutes);

my @results = get_all_substitutes(
    string => 'ABC',
    substitutions => {
        A => 'Aa',
        B => 'Bb',
    },
);

say for @results;

would print

ABC
aBC
AbC
abC

As a one-liner it might look like this:

perl -Ilib -MString::Substitute=get_all_substitutes -E 'say for get_all_substitutes(string => "ABC", substitutions => { A => "Aa", B => "Bb" })'

NAME

String::Substitute - generate strings using different combinations of subsitute characters

STABILITY

Experimental, mostly because this depends on Regex::Genex which itself admits to relying on experimental or changeable aspects of the Perl interpreter.

Tested on perl 5.20.3 - be sure to run the tests on newer versions if you will be relying on this

SUPPORT

If you require assistance, support, or further development of this software, please contact OpusVL using the details below:

Telephone: +44 (0)1788 298 410

Email: community@opusvl.com

Web: http://opusvl.com

AUTHOR

Nicholas Booker <nick.booker@opusvl.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by OpusVL - www.opusvl.com.

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