| 1 | package Growl::Any::IOHandle; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 1 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | 1 | ▶ | use parent qw(Growl::Any::Base); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | 1 | ▶ | use Encode (); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | 1 | ▶ | sub encoding { | ||||||||||||||||||
|
Subroutine
encoding: called CC=2 SCAR=8.1
Pod
undocumented
| |||||||||||||||||||||
| 10 | 1 | my($class) = @_; | |||||||||||||||||||
| 11 | 1 | ▶ | return Encode::find_encoding('locale') || $class->SUPER::encoding(); | ||||||||||||||||||
|
Condition33%1/3
&Encode::find_encoding('locale') || $class->SUPER::encoding
MC/DC0%0/2
&Encode::find_encoding('locale') || $class->SUPER::encoding
&Encode::find_encoding('locale')
$class->SUPER::encoding
Truth table33%1/3
A || B
A= &Encode::find_encoding('locale')B= $class->SUPER::encoding
| |||||||||||||||||||||
| 12 | } | ||||||||||||||||||||
| 13 | |||||||||||||||||||||
| 14 | 2 | ▶ | sub notify { | ||||||||||||||||||
|
Subroutine
notify: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 15 | 2 | my($self, $event, $title, $message, $icon) = @_; | |||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | 2 | printf "[%s] %s\n", $self->encode_list( $title, $message ); | |||||||||||||||||||
| 18 | } | ||||||||||||||||||||
| 19 | |||||||||||||||||||||
| 20 | 1 | 1; | |||||||||||||||||||
| 21 | |||||||||||||||||||||
| 22 | __END__ | ||||||||||||||||||||