line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::Nopaste::Service::PastebinCa; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
36253
|
use 5.006; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
47
|
|
4
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
45
|
|
5
|
1
|
|
|
1
|
|
6
|
use warnings FATAL => 'all'; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
47
|
|
6
|
1
|
|
|
1
|
|
5
|
use base 'App::Nopaste::Service'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
884
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '1.004'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub available { |
11
|
0
|
|
|
0
|
0
|
|
eval 'require WWW::Pastebin::PastebinCa::Create; 1'; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
sub run { |
14
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
15
|
0
|
|
|
|
|
|
my %args = @_; |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
require WWW::Pastebin::PastebinCa::Create; |
18
|
|
|
|
|
|
|
|
19
|
0
|
0
|
|
|
|
|
$args{name} = delete $args{nick} if defined $args{nick}; |
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
|
|
|
my $paster = WWW::Pastebin::PastebinCa::Create->new; |
22
|
0
|
|
|
|
|
|
my $ok = $paster->paste( |
23
|
|
|
|
|
|
|
delete($args{text}), |
24
|
|
|
|
|
|
|
expire => '1 month', |
25
|
|
|
|
|
|
|
%args, |
26
|
|
|
|
|
|
|
); |
27
|
|
|
|
|
|
|
|
28
|
0
|
0
|
|
|
|
|
return (0, $paster->error) unless $ok; |
29
|
0
|
|
|
|
|
|
return (1, $paster->paste_uri); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
q| |
33
|
|
|
|
|
|
|
A guy is standing on the corner of the street smoking one cigarette after another. A lady walking by notices him and says |
34
|
|
|
|
|
|
|
"Hey, don't you know that those things can kill you? I mean, didn't you see the giant warning on the box?!" |
35
|
|
|
|
|
|
|
"That's OK" says the guy, puffing casually "I'm a computer programmer" |
36
|
|
|
|
|
|
|
"So? What's that got to do with anything?" |
37
|
|
|
|
|
|
|
"We don't really care about warnings. We only care about errors." |
38
|
|
|
|
|
|
|
|; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
__END__ |