WWW::Pastebin::Bot::Pastebot::Create

WWW::Pastebin::Bot::Pastebot::Create is a Perl module to create pastes on sites powered by Bot::Pastebot.
Download

WWW::Pastebin::Bot::Pastebot::Create Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Zoffix Znet
  • Publisher web site:
  • http://search.cpan.org/~zoffix/

WWW::Pastebin::Bot::Pastebot::Create Tags


WWW::Pastebin::Bot::Pastebot::Create Description

WWW::Pastebin::Bot::Pastebot::Create is a Perl module to create pastes on sites powered by Bot::Pastebot. WWW::Pastebin::Bot::Pastebot::Create is a Perl module to create pastes on sites powered by Bot::Pastebot.SYNOPSIS use strict; use warnings; use WWW::Pastebin::Bot::Pastebot::Create; my $paster = WWW::Pastebin::Bot::Pastebot::Create->new( site => 'http://http://p3m.org/pfn' ); $paster->paste( 'testing', summary => 'sorry just testing' ) or die $paster->error; print "Your paste is located on $pastern";CONSTRUCTORnew my $paste = WWW::Pastebin::Bot::Pastebot::Create->new; my $paste = WWW::Pastebin::Bot::Pastebot::Create->new( site => 'http://erxz.com/pb', timeout => 10, ); my $paste = WWW::Pastebin::Bot::Pastebot::Create->new( ua => LWP::UserAgent->new( timeout => 10, agent => 'PasterUA', ), );Constructs and returns a brand new yummy juicy WWW::Pastebin::Bot::Pastebot::Create object. Takes two arguments, both are optional. Possible arguments are as follows:site ->new( site => 'http://erxz.com/pb' )Optional. Specifies the URI to pastebin site which is powered by Bot::Pastebot. Make you you don't append any "channel specific" paths. This is done internally by the module. Defaults to: http://erxz.com/pbtimeout ->new( timeout => 10 );Optional. Specifies the timeout argument of LWP::UserAgent's constructor, which is used for pasting. 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 pasting, 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::Bot::Pastebot::Create's timeout argument is set to as well as agent argument is set to mimic Firefox. Requirements: · Perl


WWW::Pastebin::Bot::Pastebot::Create Related Software