Skip to content

Instantly share code, notes, and snippets.

@typester
Created November 20, 2012 02:25
Show Gist options
  • Save typester/4115538 to your computer and use it in GitHub Desktop.
Save typester/4115538 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use 5.014;
use Data::Validator;
state $rule = Data::Validator->new(
foo => 'HashRef',
)->with('StrictSequenced');
my $args = $rule->validate({ bar => 'buzz' });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment