| 1 | package App::ZofCMS::Plugin::RandomBashOrgQuote; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 1 | our $VERSION = '1.001010'; # VERSION | |||||||||
| 7 | |||||||||||
| 8 | 1 | ▶ | use WWW::BashOrg; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 0 | ▶ | sub new { bless {}, shift } | ||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 11 | |||||||||||
| 12 | 0 | ▶ | sub process { | ||||||||
|
Subroutine
process: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 13 | 0 | my ( $self, $t ) = @_; | |||||||||
| 14 | |||||||||||
| 15 | 0 | my $b = WWW::BashOrg->new; | |||||||||
| 16 | 0 | my $quote = $b->random; | |||||||||
| 17 | |||||||||||
| 18 | 0 | ▶ | $t->{t}{plug_random_bash_org_quote} = $quote ? $quote : "Error: " . $b->error; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | 1 | 1; | |||||||||
| 22 | __END__ | ||||||||||