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

NAME

App::Pastebin::sprunge - application class for pasting to and reading from sprunge.us

VERSION

version 0.004

SYNOPSIS

    use App::Pastebin::sprunge;
    my $app = App::Pastebin::sprunge->new();
    $app->run();

DESCRIPTION

App::Pastebin::sprunge provides an application interface to WWW::Pastebin::Sprunge::Create and WWW::Pastebin::Sprunge::Retrieve, which allow creating and retrieving pastes on the http://sprunge.us pastebin.

This distribution provides an executable sprunge, which provides a simple command-line client for http://sprunge.us using this library.

METHODS

new

new() is the constructor, and creates an application object. Takes no parameters.

run

run() runs the application.

Takes two optional parameters:

Options

The first is an options hash reference:

  • If version is present, the application will print out version information and exit.

  • If lang is present, the application will append this to the returned URI. http://sprunge.us uses Pygments for syntax highlighting. In the future, there might be a check that the supplied syntax highlighter is one supported by Pygments.

Arguments

The second parameter is an array reference. Only the first element is used. It is either the URI to a paste to read, or the ID portion of the URI (the query string). If this is present, the application will read and print out the specified paste.

AVAILABILITY

The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit http://www.perl.com/CPAN/ to find a CPAN site near you, or see http://search.cpan.org/dist/App-Pastebin-sprunge/.

The development version lives at http://github.com/doherty/App-Pastebin-sprunge.git and may be cloned from git://github.com/doherty/App-Pastebin-sprunge.git. Instead of sending patches, please fork this project using the standard git and github infrastructure.

BUGS AND LIMITATIONS

No bugs have been reported.

Please report any bugs or feature requests through the web interface at http://github.com/doherty/App-Pastebin-sprunge/issues.

AUTHOR

Mike Doherty <doherty@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2010 by Mike Doherty.

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