Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Template::Plugin::StringDump for Perl 5

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 t
Octocat-spinner-32 xt
Octocat-spinner-32 Build.PL
Octocat-spinner-32 Changes
Octocat-spinner-32 INSTALL
Octocat-spinner-32 MANIFEST
Octocat-spinner-32 README
README
NAME
    Template::Plugin::StringDump - String::Dump filter for TT

VERSION
    This document describes Template::Plugin::StringDump version 0.05.

SYNOPSIS
    Template:

        [% USE StringDump %]

        [% SET msg = 'Ĝis! ☺' %]

        hex: [% msg | dump_hex %]
        dec: [% msg | dump_dec %]
        oct: [% msg | dump_oct %]
        bin: [% msg | dump_bin %]

    Output:

        hex: C4 9C 69 73 21 20 E2 98 BA
        dec: 196 156 105 115 33 32 226 152 186
        oct: 304 234 151 163 41 40 342 230 272
        bin: 11000100 10011100 1101001 1110011 100001 100000 11100010 10011000 10111010

DESCRIPTION
    This Template::Toolkit plugin adds six filters for dumping strings for
    display and debugging: "dump_hex", "dump_dec", "dump_oct", "dump_bin",
    "dump_names", and "dump_codes". Each byte is dumped for byte strings and
    each code point for Unicode strings. These filters are simple wrappers
    around the functions of the same names from String::Dump. See that
    module for details.

AUTHOR
    Nick Patch <patch@cpan.org>

COPYRIGHT AND LICENSE
    © 2011–2012 Nick Patch

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

Something went wrong with that request. Please try again.