The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

# INTERNAL MODULE: Perl 5.8 compatibility for Type::Tiny.
use 5.008;
use strict;
our $AUTHORITY = 'cpan:TOBYINK';
our $VERSION = '2.008000';
$VERSION =~ tr/_//d;
#### re doesn't provide is_regexp in Perl < 5.10
eval 'require re';
unless ( exists &re::is_regexp ) {
require B;
*re::is_regexp = sub {
eval { B::svref_2object( $_[0] )->MAGIC->TYPE eq 'r' };
};
}
#### Done!
5.8;