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

Report information
The Basics
Id:
16473
Status:
new
Priority:
Low/Low
Queue:

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

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



Subject: French thousand marker (space) not supported on integer print-out
Using Perl6::Form 0.04, perl-5.8.7 (Mandriva 2006.0). The following code ends with warnings (use of undef'ined values) at run-time: ----8<---- #!/usr/bin/perl -w use strict; # Cette table de correspondance est pratique, mais semble trop lourde my %lookup; for my $i (1..100000) { $lookup{int(rand(65536))}++; } # Regardons donc comment de mémoire est utilisée... use Devel::Size qw( size total_size ); use Perl6::Form; my $memoire_hachage = size(\%lookup); # Supplément dû au stockage uniquement my $memoire_totale = total_size(\%lookup); # Suppléments plus données my $memoire_donnees = $memoire_totale - $memoire_hachage; # Données uniquement print form( 'hachage uniquement : {>>> >>> >>>} octets', $memoire_hachage, 'données uniquement : {>>> >>> >>>} octets', $memoire_donnees, '=========================================', 'total : {>>> >>> >>>} octets', $memoire_totale, 'hachage uniquement : {>>> >>> >>>,} octets', $memoire_hachage, 'données uniquement : {>>> >>> >>>,} octets', $memoire_donnees, '=========================================', 'total : {>>> >>> >>>,} octets', $memoire_totale, ); ----8<---- Only the second print-out will succeed, although printing a superfluous ",0". This exemple is taken from what should be the french translation of PBP. Best regards, J.
Date: Wed, 14 Dec 2005 17:08:08 +1100
From: Damian Conway <damian@conway.org>
To: bug-Perl6-Form@rt.cpan.org
Subject: Re: [cpan #16473] French thousand marker (space) not supported on integer print-out
RT-Send-Cc:
Show quoted text
> Using Perl6::Form 0.04, perl-5.8.7 (Mandriva 2006.0). > > The following code ends with warnings (use of undef'ined values) at run-time:
I get no warnings with the attached (beta) version of Form.pm Damian

Message body is not shown because it is too large.

[damian@conway.org - Wed Dec 14 01:11:02 2005]:
Show quoted text
> > Using Perl6::Form 0.04, perl-5.8.7 (Mandriva 2006.0). > > > > The following code ends with warnings (use of undef'ined values) at
> run-time: > > I get no warnings with the attached (beta) version of Form.pm
Wow, impressive and responsive! It now works for me. And I now understand that the final '}' is part of the format (RTFM:). Thank you, J. -- Jérôme Fenal - jfenal at free dot fr http://fenal.org/ - http://search.cpan.org/~jfenal/


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.