Skip to content

Instantly share code, notes, and snippets.

@kazeburo
Created April 21, 2011 08:37
Show Gist options
  • Select an option

  • Save kazeburo/933984 to your computer and use it in GitHub Desktop.

Select an option

Save kazeburo/933984 to your computer and use it in GitHub Desktop.
#!perl
use strict;
use Data::Validator;
my $v = Data::Validator->new(
limit => 'Int'
);
$v->validate('foo');
__END__
Single parameters to new() must be a HASH ref at /Users/.../perls/perl-5.12.2/lib/site_perl/5.12.2/Data/Validator.pm line 119
Data::Validator::validate('Data::Validator=HASH(0x10082d078)', 'foo') called at /tmp/hogehoge.pl line 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment