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)
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)
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)
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)
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)
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)
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)
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)
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)