Skip to content

Instantly share code, notes, and snippets.

@tobyink
Created February 23, 2014 21:41
Show Gist options
  • Select an option

  • Save tobyink/9177725 to your computer and use it in GitHub Desktop.

Select an option

Save tobyink/9177725 to your computer and use it in GitHub Desktop.
use feature qw(state)
use Types::Standard qw(-all);
use Type::Params qw(compile);
sub yada {
state $check = compile Value, ArrayRef, Optional[HashRef];
my (...) = $check->(@_);
...;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment