| 1 | package Variable::OnDestruct; | ||
| 2 | 1 | $Variable::OnDestruct::VERSION = '0.05'; | |
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings FATAL => 'all'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use Exporter 5.57 'import'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use XSLoader; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | ##no critic (ProhibitAutomaticExportation) | ||
| 9 | 1 | our @EXPORT = qw/on_destruct/; | |
| 10 | |||
| 11 | 1 | XSLoader::load('Variable::OnDestruct', __PACKAGE__->VERSION); | |
| 12 | |||
| 13 | 1 | 1; # End of Variable::OnDestruct | |
| 14 | |||
| 15 | #ABSTRACT: Call a subroutine on destruction of a variable. | ||
| 16 | |||
| 17 | __END__ | ||