use strict;
use Readonly;
use Params::Validate qw(validate :types);

Readonly::Hash my %spec => ( foo => { type => SCALAR } );

my @args = (foo => 'bar');
validate(@args, \%spec);
