Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

app::nopaste::service(3pm) [debian man page]

App::Nopaste::Service(3pm)				User Contributed Perl Documentation				App::Nopaste::Service(3pm)

NAME
App::Nopaste::Service - base class for nopaste services SYNOPSIS
package App::Nopaste::Service::Shadowcat; use base 'App::Nopaste::Service'; sub uri { "http://paste.scsys.co.uk/" } DESCRIPTION
"App::Nopaste::Service" defines a generic interface for uploading to nopaste sites. It provides a default interface to that of the POE Pastebot. METHODS
nopaste This is the outermost method called by App::Nopaste and other clients. You should not override this method, as it will (XXX: eventually) perform canonicalization of arguments (such as "lang") for you. run args -> (OK, message) This is the outermost method you should override. You'll be passed a hash of arguments. The only arguments you should pay attention to are: text The body of text to paste. desc A short (one-line) summary of the paste. nick The name of the person performing the paste. chan The IRC channel to which the paste belongs. lang The programming language of the body of text. private If false, the paste will be public (default). get mech, args This should "get" the form to paste using the provided WWW::Mechanize object. By default it does just that. See "uri" below. uri If you only need to call "mech->get(uri)" then you may define this method to provide the URI of the nopaste service. fill_form mech, args This should have the WWW::Mechanize fill in the form using the arguments, and submit it. return mech, args This should look at "WWW::Mechanize->content" to find the URI to the pasted text. AUTHOR
Shawn M Moore, "<sartak at gmail.com>" perl v5.14.2 2011-08-22 App::Nopaste::Service(3pm)

Check Out this Related Man Page

App::Nopaste::Command(3pm)				User Contributed Perl Documentation				App::Nopaste::Command(3pm)

NAME
App::Nopaste::Command - command-line utility for App::Nopaste nopaste - command-line utility to nopaste DESCRIPTION
This application will take some text on STDIN and give you a URL on STDOUT. You may also specify files as arguments, they will be concatenated together into one large nopaste. OPTIONS
-d, --desc The one line description of your paste. The default is usually the first few characters of your text. -n, --name Your nickname, usually displayed with the paste. Default: $NOPASTE_NICK then $USER. -l, --lang The language of the nopaste. The values accepted depend on the nopaste service. There is no mapping done yet. Default: perl. -c, --chan The channel for the nopaste, not always relevant. Usually tied to a pastebot in that channel which will announce your paste. -s, --services The nopaste services to try, in order. You may also specify this in $NOPASTE_SERVICES (space-separated list of service names, e.g. "Shadowcat Gist"). -L, --list List available nopaste services. -x, --copy If specified, automatically copy the URL to your clipboard, using the Clipboard module. -p, --paste If specified, use only the clipboard as input, using the Clipboard module. -o, --open If specified, automatically open the URL using Browser::Open. Browser::Open tries a number of different browser commands depending on your OS. --private If specified, the paste access will be restricted to those that know the URL. -q, --quiet If specified, do not warn or complain about broken services. perl v5.14.2 2011-08-26 App::Nopaste::Command(3pm)
Man Page

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Need help with VI

Quickly, could someone explain how to cut and paste text using VI text editor? (2 Replies)
Discussion started by: Jubba
2 Replies

2. Shell Programming and Scripting

copy and paste a specific line

Hi I am having some trouble cut and paste a file based on the content of another file. I have a file called draft. I need to cut and paste its content to another file based on the content of a file called proc.txt The content of proc.txt is like the following:... (7 Replies)
Discussion started by: tiger99
7 Replies

3. UNIX for Advanced & Expert Users

Copy Paste across UNIX and Windows ?

how to select all the text from a file in Unix and then paste it in Notepad in windows? (4 Replies)
Discussion started by: skyineyes
4 Replies

4. UNIX for Dummies Questions & Answers

vi paste problem

i encountered a vi paste problem on aix platform. when i copied some sources from windows and then pasted it into a vi window, many <TAB>s were inserted automatically in front of each line. (i.e., one tab for line1 and two tabs for line2 and etc) but this problem cannot be repeated on linux... (2 Replies)
Discussion started by: wrl
2 Replies

5. Solaris

Copy and paste text from a word document into a txt file in vi

Hello, Can anybody please tell me how we can copy and paste text from a word document into a text file that we are editing in vi? Is it possible to do that while we are editing the text file in vi in insert mode? Thanks, (3 Replies)
Discussion started by: Pouchie1
3 Replies

6. Programming

help with #define in C

if i do this in C #define NUM 1234512345 then how come i cant print it out using int main(int argc, char **argv) { printf("%d\n", NUM); return 0; } well the result is -1219236538, why isnt it 1234512345 ? (7 Replies)
Discussion started by: omega666
7 Replies

7. Shell Programming and Scripting

Perl + and Grep

Hi All i have this script that uses glob to look in /var/log/messages.* my @messagefiles = glob "/var/log/messages.*"; and the code that uses it is this grep { /NVRM: Xid/ } @messages) but this spits out this /var/log/messages-20111030:Oct 25 13:43:04 brent kernel: NVRM:... (10 Replies)
Discussion started by: ab52
10 Replies

8. Shell Programming and Scripting

How to paste lines below certain text (Script)

Hello Guys, I know the command echo " " > filenamehere ; would erase everything in the document. Can the same be done, to paste words below certain text? For example, lets say i want to paste a line below the line Server name: in apache.conf . What should be added in the script? (8 Replies)
Discussion started by: xxxx
8 Replies

9. UNIX for Dummies Questions & Answers

How to paste second file into the first file

Hello, I am new to Unix and hoping that someone could help me with this. I have 2 different text files that has more than 300,000 rows and would like to paste a single column on the File 2 as the very last column of File 1. Example, File 1: AAA DDD VVV RRR AAA DDD VVV RRR BBB HHH GGG... (3 Replies)
Discussion started by: narachaid
3 Replies

10. Shell Programming and Scripting

Perl script to find last column

Dear all, I am new bee in perl scripting,i have generated one report in which i want to paste some data/text at the end,plz help me format is like this $worksheet1->write( 'A5',,$format2); i want to paste my text after this column A50 in column A51 but this column is variable it may... (1 Reply)
Discussion started by: sagar_1986
1 Replies