<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    Minecraft::SectionFilter - Strip/Process magical Ă‚Â§ characters from
    minecraft

VERSION
    version 0.003001

SYNOPSIS
        use Minecraft::SectionFilter;
        while(&lt;$some_stream_of_text&gt;){
            if( $ENV{MODE} eq 'STRIP' ) {
                print(strip_sections($_))
            }
            else {
                print(ansi_encode_sections($_));
            }
        }

FUNCTIONS
  translate_sections
    Parse a string into a series of elements;

        my (@list) = translate_sections($string)

    Resulting list will be a list of hashrefs, either:

        { type =&gt; text , content =&gt; "the string itself" }

    or

        { type =&gt; section, section_code =&gt; $char }

  strip_sections
    Strip section codes from a string.

        my $output = strip_sections( $input );

  ansi_encode_sections
    Translate section codes to Term::ANSIColor color codes.

        STDOUT-&gt;print( ansi_encode_sections( $minecraft_string ) );

SEE ALSO
    Minecraft::RCON which has a similar feature, except its not
    user-acessible/reusable.

AUTHOR
    Kent Fredric &lt;kentfredric@gmail.com&gt;

COPYRIGHT AND LICENSE
    This software is copyright (c) 2014 by Kent Fredric
    &lt;kentfredric@gmail.com&gt;.

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

</pre></body></html>