| 1 | package IPC::QWorker::WorkUnit; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 11 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 11 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | 11 | ▶ | use utf8; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | 11 | our $VERSION = '0.07'; # VERSION | |||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | sub new { | ||||||||||||||||||||
| 10 | 120 | ▶ | my $this = shift; | ||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.2
Pod
undocumented
| |||||||||||||||||||||
| 11 | 120 | ▶ | my $class = ref($this) || $this; | ||||||||||||||||||
|
Condition33%1/3
ref $this || $this
MC/DC0%0/2
ref $this || $this
ref $this
$this
Truth table33%1/3
A || B
A= ref $thisB= $this
| |||||||||||||||||||||
| 12 | 120 | my $self = { | |||||||||||||||||||
| 13 | 'cmd' => undef, | ||||||||||||||||||||
| 14 | 'params' => undef, | ||||||||||||||||||||
| 15 | @_ | ||||||||||||||||||||
| 16 | }; | ||||||||||||||||||||
| 17 | 120 | bless($self, $class); | |||||||||||||||||||
| 18 | 120 | return($self); | |||||||||||||||||||
| 19 | } | ||||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | 11 | 1; | |||||||||||||||||||
| 22 | |||||||||||||||||||||
| 23 | # vim:ts=2:syntax=perl: | ||||||||||||||||||||
| 24 | # vim600:foldmethod=marker: | ||||||||||||||||||||