Skip Menu |

This queue is for tickets about the MooseX-Params-Validate CPAN distribution.

Report information
The Basics
Id: 91193
Status: new
Priority: 0/
Queue: MooseX-Params-Validate

People
Owner: Nobody in particular
Requestors: ser.khomutov [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.18
Fixed in: (no value)



Subject: Don't validate big arrays of string
perl 5.14.2 Ubuntu 12.04 ################################ use strict; use warnings; use MooseX::Params::Validate; my @values = (); for( my $i = 0; $i < 1000 ; $i ++){ push @values , 'test'; } test(\@values); @values = (); for( my $i = 0; $i < 100 ; $i ++){ push @values , 'test'; } test(\@values); sub test{ my ( $event ) = pos_validated_list(\@_, { isa => 'ArrayRef[Str]' }, ); unless( defined($event) ){ print "Fail!\n"; }else{ print "Success!\n"; } } ============================= Fale! Success!
Subject: test.pl
use strict; use warnings; use MooseX::Params::Validate; my @values = (); for( my $i = 0; $i < 1000 ; $i ++){ push @values , 'test'; } test(\@values); @values = (); for( my $i = 0; $i < 100 ; $i ++){ push @values , 'test'; } test(\@values); sub test{ my ( $event ) = pos_validated_list(\@_, { isa => 'ArrayRef[Str]' }, ); unless( defined($event) ){ print "Fail!\n"; }else{ print "Success!\n"; } }