These were being exported with a wrapper that treated them as method
calls, which causes them to fail. They are just functions, are
documented as such, and should never be subclassed, so this patch
just exports them directly as functions without the wrapper.
}
if (exists($args{'is_strict'})) {
- *{$callpkg.'::is_strict'} =
- sub {return $class->is_strict(shift)}
- unless defined(&{$callpkg.'::is_strict'});
+ *{$callpkg.'::is_strict'} = \&version::is_strict;
}
if (exists($args{'is_lax'})) {
- *{$callpkg.'::is_lax'} =
- sub {return $class->is_lax(shift)}
- unless defined(&{$callpkg.'::is_lax'});
+ *{$callpkg.'::is_lax'} = \&version::is_lax;
}
}