| 1 | package Attribute::Alias; | ||||||||||
| 2 | |||||||||||
| 3 | 5 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 5 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 5 | ▶ | use Attribute::Handlers; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 5 | our $VERSION = sprintf "%d.%02d", q$Revision: 1.2 $ =~ /(\d+)/g; | |||||||||
| 8 | |||||||||||
| 9 | 1 | ▶ | sub UNIVERSAL::Alias : ATTR { | ||||||||
|
Subroutine
Alias: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||
| 10 | 1 | my ($pkg, $symbol, $data) = @_[0,1,4]; | |||||||||
| 11 | 5 | ▶ | no strict 'refs'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 1 | ▶ | *{"$pkg\::$_"} = $symbol for ref $data eq 'ARRAY' ? @$data : $data; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | 5 | ▶ | } | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | |||||||||||
| 15 | 5 | "Rosebud"; # for MARCEL's sake, not 1 -- dankogai | |||||||||
| 16 | |||||||||||
| 17 | __END__ | ||||||||||