| 1 | # [[[ HEADER ]]] | ||
| 2 | package Perl::Type::Modifier::Reference; | ||
| 3 | 5 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 5 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 5 | ▶ | use Perl::Config; # don't use Perl::Types inside itself, in order to avoid circular includes |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 5 | our $VERSION = 0.002_000; | |
| 7 | |||
| 8 | # [[[ OO INHERITANCE ]]] | ||
| 9 | 5 | ▶ | use parent qw(Perl::Type::Modifier); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 5 | ▶ | use Perl::Type::Modifier; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | # [[[ SUB-TYPES ]]] | ||
| 13 | # a reference is the location of a data type or data structure; | ||
| 14 | # a reference is not a data type, regardless of Perl's internal RV type, use 'unknown' instead | ||
| 15 | # NEED FIX???: overload Perl's 'ref' keyword | ||
| 16 | package reference; | ||
| 17 | 5 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 5 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | 5 | ▶ | use parent qw(Perl::Type::Modifier::Reference); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | |||
| 21 | 5 | 1; # end of class | |