| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package Alias::Any; | 
| 2 |  |  |  |  |  |  |  | 
| 3 | 6 |  |  | 6 |  | 285639 | use 5.012; | 
|  | 6 |  |  |  |  | 48 |  | 
| 4 | 6 |  |  | 6 |  | 20 | use warnings; | 
|  | 6 |  |  |  |  | 9 |  | 
|  | 6 |  |  |  |  | 196 |  | 
| 5 |  |  |  |  |  |  |  | 
| 6 |  |  |  |  |  |  | our $VERSION = '0.000006'; | 
| 7 |  |  |  |  |  |  |  | 
| 8 | 6 |  |  | 6 |  | 1998 | use Keyword::Simple; | 
|  | 6 |  |  |  |  | 99624 |  | 
|  | 6 |  |  |  |  | 398 |  | 
| 9 |  |  |  |  |  |  |  | 
| 10 |  |  |  |  |  |  | # Make 'keyword' and 'unkeyword' no-ops, unless Keyword::Declare is later loaded... | 
| 11 |  |  |  |  |  |  | BEGIN { | 
| 12 | 0 |  |  | 0 |  | 0 | sub _delete_source { my $ref = shift; $$ref =~ s{ \A .*? [#]END_OF_ALIAS }{}xms; } | 
|  | 0 |  |  |  |  | 0 |  | 
| 13 | 6 |  |  | 6 |  | 24 | Keyword::Simple::define(   keyword => \&_delete_source ); | 
| 14 | 6 |  |  |  |  | 132 | Keyword::Simple::define( unkeyword => \&_delete_source ); | 
| 15 |  |  |  |  |  |  | } | 
| 16 |  |  |  |  |  |  |  | 
| 17 | 0 |  |  |  |  | 0 | sub import { | 
| 18 |  |  |  |  |  |  | # Below 5.22, alias keyword just injects Data::Alias... | 
| 19 | 7 | 50 |  | 7 |  | 327 | if ($^V <  5.022) { | 
| 20 |  |  |  |  |  |  | Keyword::Simple::define( | 
| 21 |  |  |  |  |  |  | alias => sub { | 
| 22 | 0 |  |  | 0 |  | 0 | my $ref = shift; | 
| 23 | 0 |  |  |  |  | 0 | $$ref = q{use Data::Alias; Data::Alias::alias} . $$ref; | 
| 24 |  |  |  |  |  |  | } | 
| 25 | 0 |  |  |  |  | 0 | ); | 
| 26 |  |  |  |  |  |  | } | 
| 27 |  |  |  |  |  |  |  | 
| 28 |  |  |  |  |  |  | # Above 5.22, alias keyword replaced with built-in syntax... | 
| 29 | 6 |  |  | 6 |  | 3214 | use if $^V >= 5.022, 'Keyword::Declare'; | 
|  | 6 |  |  |  |  | 60 |  | 
|  | 6 |  |  |  |  | 91 |  | 
| 30 | 7 |  |  |  |  | 17 |  | 
| 31 | 7 | 50 | 50 |  |  | 122 | keyword alias (Variable|VariableDeclaration $variable, '=', Expr $expr) {{{ | 
| 32 | 7 |  |  |  |  | 32 | use feature 'refaliasing'; | 
| 33 |  |  |  |  |  |  | no warnings 'experimental::refaliasing'; | 
| 34 |  |  |  |  |  |  | \<{$variable}> = \<{$expr}> | 
| 35 |  |  |  |  |  |  | }}} #END_OF_ALIAS | 
| 36 | 14 |  |  | 14 |  | 767206 | } | 
|  | 14 |  |  |  |  | 37 |  | 
|  | 14 |  |  |  |  | 19 |  | 
|  | 14 |  |  |  |  | 19 |  | 
|  | 14 |  |  |  |  | 23 |  | 
| 37 |  |  |  |  |  |  |  | 
| 38 | 0 |  |  |  |  |  | sub unimport { | 
| 39 | 14 |  |  |  |  | 20 | # Below 5.22, alias keyword is undefined by Keyword::Simple... | 
|  | 14 |  |  |  |  | 23 |  | 
|  | 14 |  |  |  |  | 70 |  | 
| 40 | 7 | 50 |  | 2 |  | 64 | if ($^V < 5.022) { | 
|  | 2 |  |  |  |  | 484 |  | 
| 41 | 0 |  |  |  |  | 0 | Keyword::Simple::undefine('alias'); | 
| 42 | 6 | 0 |  | 6 |  | 531428 | if ($Keyword::Simple::VERSION < 0.04) { | 
|  | 0 |  |  |  |  | 0 |  | 
| 43 | 0 |  |  |  |  | 0 | $^H{'Keyword::Simple/keywords'} =~ s{ alias:(?:\d+|-\d*)}{}g; | 
| 44 |  |  |  |  |  |  | } | 
| 45 |  |  |  |  |  |  | } | 
| 46 | 0 |  |  |  |  | 0 |  | 
|  | 0 |  |  |  |  | 0 |  | 
|  | 0 |  |  |  |  | 0 |  | 
|  | 0 |  |  |  |  | 0 |  | 
|  | 0 |  |  |  |  | 0 |  | 
| 47 |  |  |  |  |  |  | # Above 5.22, alias keyword is unkeyworded by Keyword::Declare... | 
| 48 | 6 |  |  | 6 |  | 1080 | use if $^V >= 5.022, 'Keyword::Declare'; | 
|  | 6 |  |  |  |  | 12 |  | 
|  | 6 |  |  |  |  | 132 |  | 
|  | 2 |  |  |  |  | 7 |  | 
| 49 | 0 | 50 | 50 |  |  | 0 | unkeyword alias; #END_OF_ALIAS | 
|  | 0 |  |  |  |  | 0 |  | 
|  | 0 |  |  |  |  | 0 |  | 
|  | 2 |  |  |  |  | 32 |  | 
|  | 2 |  |  |  |  | 10 |  | 
| 50 | 6 |  |  |  |  | 37 | } | 
|  | 2 |  |  |  |  | 131 |  | 
| 51 | 6 |  |  | 6 |  | 145004 |  | 
| 52 | 6 |  |  |  |  | 663 |  | 
| 53 |  |  |  |  |  |  | 1; # Magic true value required at end of module | 
| 54 |  |  |  |  |  |  | __END__ |