| 1 | package Acme::YAPC::Asia::2012::LTthon::Hakushu; | ||
| 2 | 2 | ▶ | use 5.008_001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | our $VERSION = '0.03'; | |
| 7 | |||
| 8 | 2 | ▶ | use parent qw(Exporter); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 2 | our @EXPORT = qw(hakushu); | |
| 10 | |||
| 11 | 2 | ▶ | use Furl; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 0 | ▶ | sub hakushu { |
|
Subroutine
hakushu: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 14 | 0 | __PACKAGE__->push(); | |
| 15 | } | ||
| 16 | |||
| 17 | 0 | ▶ | sub push { |
|
Subroutine
push: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 18 | 0 | my($class) = @_; | |
| 19 | |||
| 20 | 0 | my $api = 'http://hachiojipm.org/hakushu/'; | |
| 21 | |||
| 22 | 0 | my $ua = Furl->new(agent => sprintf '%s/%s', $class, $class->VERSION); | |
| 23 | |||
| 24 | 0 | my $res = $ua->post($api, [], [ send => 1 ]); | |
| 25 | |||
| 26 | 0 | return $res->code; | |
| 27 | } | ||
| 28 | |||
| 29 | 2 | 1; | |
| 30 | __END__ | ||