| 1 | package assertions::activate; | ||||||||||
| 2 | |||||||||||
| 3 | 2 | our $VERSION = '0.02'; | |||||||||
| 4 | |||||||||||
| 5 | 5 | ▶ | sub import { | ||||||||
|
Subroutine
import: called CC=3 SCAR=11.4
| |||||||||||
| 6 | 5 | shift; | |||||||||
| 7 | 5 | ▶ | @_ = '.*' unless @_; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 8 | 5 | ▶ | push @{^ASSERTING}, map { ref $_ eq 'Regexp' ? $_ : qr/^(?:$_)\z/ } @_; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 9 | } | ||||||||||
| 10 | |||||||||||
| 11 | 2 | 1; | |||||||||
| 12 | __END__ | ||||||||||