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

NAME

Acme::TLDR - Abbreviate Perl namespace

VERSION

version 0.001

SYNOPSIS

    #!/usr/bin/env perl
    use strict;
    use warnings;

    use Acme::TLDR;
    use D::D;       # Data::Dump
    use D::MD5;     # Digest::MD5
    use DT;         # DateTime
    use HTTP::T;    # HTTP::Tiny

    print DT->now, "\n";

    my $ua = HTTP::T->new;
    my $res = $ua->get('http://ifconfig.me/all');
    dd $res;

    my $md5 = D::MD5->new;
    $md5->add($res->{content});
    print $md5->hexdigest, "\n";

DESCRIPTION

This module is heavily inspired on the shortener module proposal by Fernando Correa de Oliveira, albeit it operates in a completely distinct way.

ENVIRONMENT VARIABLES

  • DEBUG - when set, dump the internals status (most importantly, the long <=> short name mapping;

  • NOCACHE - when set, no persistent cache is saved.

CAVEAT

To reduce loading time (ExtUtils::Installed->new->modules is too damn slow), an installed module cache is initialized upon Acme::TLDR start. It is updated when the perllocal.pod file of the used Perl version gets a modified time more recent than the cache file itself.

SEE ALSO

AUTHOR

Stanislaw Pusep <stas@sysd.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Stanislaw Pusep.

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