The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Proquint - convert to and from proquint strings

VERSION

1.0.0_3 (2022-02-01)

SYNOPSIS

    use Proquint ':all';

    my $quint  = uint2proquint(0xCF000001);       # "lusab-babad"
    my $int    = proquint2uint($quint);           # 0xCF000001

    my $quint2 = hex2proquint("dead1234beef");    # "tupot-damuh-ruroz"
    my $hex    = proquint2hex($quint2);           # "dead1234beef"

    my $quint3 = ip2proquint('127.0.0.1');        # "lusab-babad"
    my $ip     = proquint2ip($quint3);            # "127.0.0.1"

DESCRIPTION

Proquints are readable, spellable, and pronounceable identifiers. The Proquints module converts 32-bit integers, hexadecimal strings, and IP addresses to and from proquints.

AUTHOR

Mark Lawrence <nomad@null.net>

COPYRIGHT AND LICENSE

Copyright 2018-2022 Mark Lawrence <nomad@null.net>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.