Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    WWW::Pastebin::PastieCabooSe::Retrieve 0.001

    Download button

    No screenshots available
    Downloads: 293  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.3/5)
    10 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Zoffix Znet | More programs
    Perl Artistic License / FREE
    May 26th, 2008, 11:38 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    WWW::Pastebin::PastieCabooSe::Retrieve description

    A Perl module to retrieve pastes from http://pastie.caboo.se/.

    WWW::Pastebin::PastieCabooSe::Retrieve is a Perl module to retrieve pastes from http://pastie.caboo.se/.

    SYNOPSIS

    use strict;
    use warnings;

    use WWW::Pastebin::PastieCabooSe::Retrieve;

    my $paster = WWW::Pastebin::PastieCabooSe::Retrieve->new;

    $paster->retrieve('http://pastie.caboo.se/170666')
    or die 'Error: ' . $paster->error;

    print "Paste content:n$pastern";


    CONSTRUCTOR

    new

    my $paster = WWW::Pastebin::PastieCabooSe::Retrieve->new;

    my $paster = WWW::Pastebin::PastieCabooSe::Retrieve->new(
    timeout => 10,
    );

    my $paster = WWW::Pastebin::PastieCabooSe::Retrieve->new(
    ua => LWP::UserAgent->new(
    timeout => 10,
    agent => 'PasterUA',
    ),
    );


    Constructs and returns a brand new juicy WWW::Pastebin::PastieCabooSe::Retrieve object. Takes two arguments, both are optional. Possible arguments are as follows:

    timeout

    ->new( timeout => 10 );

    Optional. Specifies the timeout argument of LWP::UserAgent's constructor, which is used for retrieving. Defaults to: 30 seconds.

    ua

    ->new( ua => LWP::UserAgent->new( agent => 'Foos!' ) );

    Optional. If the timeout argument is not enough for your needs of mutilating the LWP::UserAgent object used for retrieving, feel free to specify the ua argument which takes an LWP::UserAgent object as a value. Note: the timeout argument to the constructor will not do anything if you specify the ua argument as well. Defaults to: plain boring default LWP::UserAgent object with timeout argument set to whatever WWW::Pastebin::PastieCabooSe::Retrieve's timeout argument is set to as well as agent argument is set to mimic Firefox.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    retrieve pastes | Pastie Caboo | Perl module | Pastebin | pastes | retriever

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM