| 1 | package private; | ||||||||||
| 2 | |||||||||||
| 3 | 4 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 4 | ▶ | use vars qw($VERSION); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 4 | $VERSION = 0.04; | |||||||||
| 8 | |||||||||||
| 9 | 4 | ▶ | use Class::Fields::Fuxor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 4 | ▶ | use Class::Fields::Attribs; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 6 | ▶ | sub import { | ||||||||
|
Subroutine
import: called CC=4 SCAR=13.9
| |||||||||||
| 13 | #Dump the class. | ||||||||||
| 14 | 6 | shift; | |||||||||
| 15 | |||||||||||
| 16 | 6 | my $pack = caller; | |||||||||
| 17 | 6 | foreach my $field (@_) { | |||||||||
| 18 | 13 | ▶ | unless( $field =~ /^_/ ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 19 | 2 | require Carp; | |||||||||
| 20 | 2 | ▶ | Carp::carp("Private data fields should be named with a ", | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | "leading underscore") if $^W; | ||||||||||
| 22 | } | ||||||||||
| 23 | } | ||||||||||
| 24 | 6 | add_fields($pack, PRIVATE, @_); | |||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | |||||||||||
| 28 | 4 | return 'pants of infinity'; | |||||||||
| 29 | __END__ | ||||||||||