Subject: | synopsis example broken in multiple ways |
score => {
type => 'hash',
of => 'non_negative_int',
},
Having "of" be a string doesn't work. Should be:
score => {
type => 'hash',
of => { type => 'non_negative_int' },
},
And this:
monthly_score => {
type => 'hash',
of => {
type => 'hash',
of => {
type => 'arrray',
callback => sub {
@{ $_[0] } < 12;
},
}
},
}
"array" is misspelt with an extra "r", and it is missing a required "of". So it should be:
monthly_score => {
type => 'hash',
of => {
type => 'hash',
of => {
type => 'array',
of => { type => 'integer' }, # integer? who knows?
callback => sub {
@{ $_[0] } < 12;
},
}
},
}