This queue is for tickets about the Perl6-Form CPAN distribution.

Report information
The Basics
Id:
128188
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
fsfs [...] debian.org
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
0.06
Fixed in:
(no value)



Subject: Negative repeat count does nothing at /usr/share/perl5/Perl6/Form.pm line 1226
I'm getting six of the above warnings per line printed, apparently $f->{height}{min} is undef and @{$parts[$col]} is 1, so the repeat count becomes -1, which results in a warning (W numberic) since perl v5.22.0. Perhaps the repeat count needs to be calculated first, and set to zero if it becomes negative? My use case: use Perl6::Form; ... print form { page => { width => $cols } }, "{<<<<<<<<<<<<<<<<<} {<<<<<<<} {[[[{ * }[[[}", $_->{'timestamp'}, $_->{'source'}, $_->{'message'};
ah, perhaps I should add that I'm running under 'perl -w', otherwise the warnings don't show
Subject: Re: [rt.cpan.org #128188] Negative repeat count does nothing at /usr/share/perl5/Perl6/Form.pm line 1226
Date: Mon, 7 Jan 2019 10:54:34 +0000
To: bug-Perl6-Form@rt.cpan.org
From: Damian Conway <damian@conway.org>
Many thanks, Florian.

I have just uploaded a new release that should fix this problem.

Much appreciated!

Damian


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.