use
if
"$]"
>= 5.022,
experimental
=>
're_strict'
;
no
if
"$]"
>= 5.031009,
feature
=>
'indirect'
;
no
if
"$]"
>= 5.033001,
feature
=>
'multidimensional'
;
no
if
"$]"
>= 5.033006,
feature
=>
'bareword_filehandles'
;
sub
vocabulary {
}
sub
keywords {
'stringLessThan'
}
sub
_traverse_keyword_stringLessThan (
$self
,
$schema
,
$state
) {
return
if
not assert_keyword_type(
$state
,
$schema
,
'string'
);
return
1;
}
sub
_eval_keyword_stringLessThan (
$self
,
$data
,
$schema
,
$state
) {
return
1
if
not is_type(
'string'
,
$data
);
return
1
if
(
$data
cmp
$schema
->{stringLessThan}) == -1;
return
E(
$state
,
'value is not stringwise less than %s'
,
$schema
->{stringLessThan});
}
1;