| 1 | package UNIVERSAL::filename; | ||||||||||
| 2 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | our $VERSION = '0.03'; | |||||||||
| 5 | |||||||||||
| 6 | 2 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 2 | require UNIVERSAL; | |||||||||
| 8 | } | ||||||||||
| 9 | |||||||||||
| 10 | 3 | ▶ | *UNIVERSAL::filename = sub { | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 3 | my $class = shift; | |||||||||
| 12 | 3 | $class =~ s{::}{/}g; | |||||||||
| 13 | 3 | $INC{$class.".pm"}; | |||||||||
| 14 | 2 | ▶ | } unless defined &UNIVERSAL::filename; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | |||||||||||
| 16 | 2 | 1; | |||||||||
| 17 | __END__ | ||||||||||