| 1 | 3 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 3 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | package Devel::ChangePackage; | ||||||||||
| 5 | 3 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 3 | $Devel::ChangePackage::AUTHORITY = 'cpan:FLORA'; | |||||||||
| 7 | } | ||||||||||
| 8 | { | ||||||||||
| 9 | 3 | $Devel::ChangePackage::VERSION = '0.08'; | |||||||||
| 10 | } | ||||||||||
| 11 | # ABSTRACT: Change the package code is currently being compiled in | ||||||||||
| 12 | |||||||||||
| 13 | 3 | ▶ | use XSLoader; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | 3 | ▶ | use Sub::Exporter -setup => { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | exports => ['change_package'], | ||||||||||
| 16 | groups => { default => ['change_package'] }, | ||||||||||
| 17 | 3 | }; | |||||||||
| 18 | |||||||||||
| 19 | |||||||||||
| 20 | XSLoader::load( | ||||||||||
| 21 | __PACKAGE__, | ||||||||||
| 22 | # we need to be careful not to touch $VERSION at compile time, otherwise | ||||||||||
| 23 | # DynaLoader will assume it's set and check against it, which will cause | ||||||||||
| 24 | # fail when being run in the checkout without dzil having set the actual | ||||||||||
| 25 | # $VERSION | ||||||||||
| 26 | exists $Devel::ChangePackage::{VERSION} | ||||||||||
| 27 | 3 | ▶ | ? ${ $Devel::ChangePackage::{VERSION} } : (), | ||||||||
|
Branch: 1 branch
| |||||||||||
| 28 | ); | ||||||||||
| 29 | |||||||||||
| 30 | 3 | 1; | |||||||||
| 31 | |||||||||||
| 32 | __END__ | ||||||||||