| 1 | # mro.pm | ||||||||||
| 2 | # | ||||||||||
| 3 | # Copyright (c) 2007 Brandon L Black | ||||||||||
| 4 | # Copyright (c) 2008,2009 Larry Wall and others | ||||||||||
| 5 | # | ||||||||||
| 6 | # You may distribute under the terms of either the GNU General Public | ||||||||||
| 7 | # License or the Artistic License, as specified in the README file. | ||||||||||
| 8 | # | ||||||||||
| 9 | package mro; | ||||||||||
| 10 | 7 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 7 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | |||||||||||
| 13 | # mro.pm versions < 1.00 reserved for MRO::Compat | ||||||||||
| 14 | # for partial back-compat to 5.[68].x | ||||||||||
| 15 | 7 | our $VERSION = '1.30'; | |||||||||
| 16 | |||||||||||
| 17 | 7 | require XSLoader; | |||||||||
| 18 | 7 | XSLoader::load('mro'); | |||||||||
| 19 | |||||||||||
| 20 | 0 | ▶ | sub import { | ||||||||
|
Subroutine
import: not called CC=2 SCAR=17.9
| |||||||||||
| 21 | 0 | ▶ | mro::set_mro(scalar(caller), $_[1]) if $_[1]; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | package # hide me from PAUSE | ||||||||||
| 25 | next; | ||||||||||
| 26 | |||||||||||
| 27 | 0 | ▶ | sub can { mro::_nextcan($_[0], 0) } | ||||||||
|
Subroutine
can: not called
| |||||||||||
| 28 | |||||||||||
| 29 | 0 | ▶ | sub method { | ||||||||
|
Subroutine
method: not called
| |||||||||||
| 30 | my $method = mro::_nextcan($_[0], 1); | ||||||||||
| 31 | goto &$method; | ||||||||||
| 32 | } | ||||||||||
| 33 | |||||||||||
| 34 | package # hide me from PAUSE | ||||||||||
| 35 | maybe::next; | ||||||||||
| 36 | |||||||||||
| 37 | 0 | ▶ | sub method { | ||||||||
|
Subroutine
method: not called CC=2 SCAR=17.9
| |||||||||||
| 38 | 0 | my $method = mro::_nextcan($_[0], 0); | |||||||||
| 39 | 0 | ▶ | goto &$method if defined $method; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 40 | 0 | return; | |||||||||
| 41 | } | ||||||||||
| 42 | |||||||||||
| 43 | 7 | 1; | |||||||||
| 44 | |||||||||||
| 45 | __END__ | ||||||||||