| 1 | package DWH_File::Work; | ||||||||||
| 2 | |||||||||||
| 3 | 9 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 9 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 9 | ▶ | use vars qw( @ISA $VERSION ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 9 | ▶ | use DWH_File::Kernel; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 9 | ▶ | use DWH_File::Tie::Hash; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 9 | @ISA = qw( DWH_File::Tie::Hash ); | |||||||||
| 11 | 9 | $VERSION = 0.01; | |||||||||
| 12 | |||||||||||
| 13 | 13 | ▶ | sub TIEHASH { | ||||||||
|
Subroutine
TIEHASH: called CC=1 SCAR=0.0
| |||||||||||
| 14 | 13 | my $class = shift; | |||||||||
| 15 | 13 | my $kernel = DWH_File::Kernel->new( @_ ); | |||||||||
| 16 | 13 | my $self = delete $kernel->{ work }; | |||||||||
| 17 | 13 | $kernel->{ cache }->decache( $self ); | |||||||||
| 18 | 13 | return $self; | |||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | 13 | ▶ | sub tie_reference { | ||||||||
|
Subroutine
tie_reference: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 22 | 13 | my $this = shift; | |||||||||
| 23 | 13 | $_[ 5 ] = 'DWH_File::Tie::Hash'; | |||||||||
| 24 | 13 | return $this->SUPER::tie_reference( @_ ); | |||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | 13 | ▶ | sub wipe { | ||||||||
|
Subroutine
wipe: called CC=2 SCAR=7.2
Pod
undocumented
| |||||||||||
| 28 | 13 | ▶ | if ( $_[ 0 ]->{ kernel }{ alive } ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 29 | 13 | $_[ 0 ]->{ kernel }->wipe; | |||||||||
| 30 | } | ||||||||||
| 31 | } | ||||||||||
| 32 | |||||||||||
| 33 | 9 | 1; | |||||||||
| 34 | |||||||||||
| 35 | __END__ | ||||||||||