WWW::Pastebin::PastieCabooSe::RetrieveWWW::Pastebin::PastieCabooSe::Retrieve is a Perl module to retrieve pastes from http://pastie.caboo.se/. | |
Download |
WWW::Pastebin::PastieCabooSe::Retrieve Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Zoffix Znet
- Publisher web site:
- http://search.cpan.org/~zoffix/
WWW::Pastebin::PastieCabooSe::Retrieve Tags
WWW::Pastebin::PastieCabooSe::Retrieve Description
WWW::Pastebin::PastieCabooSe::Retrieve is 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";CONSTRUCTORnew 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. Requirements: · Perl
WWW::Pastebin::PastieCabooSe::Retrieve Related Software