Skip to content

Instantly share code, notes, and snippets.

@sgnix
Last active February 7, 2019 18:35
Show Gist options
  • Save sgnix/db91b3cf38ae8486c31672d5c36a7a4f to your computer and use it in GitHub Desktop.
Save sgnix/db91b3cf38ae8486c31672d5c36a7a4f to your computer and use it in GitHub Desktop.
Oddity in Params::ValidationCompiler
use strict;
use warnings;
use Types::Standard qw/Int Str/;
use Params::ValidationCompiler qw( validation_for );
sub foo {
my ($num) = validation_for(
params => [
{ type => Str }
]
)->(@_);
print $num;
}
foo(1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment