[Handel] format statement in Handel version 0.33

Christopher H. Laco claco at chrislaco.com
Thu Aug 3 16:08:14 CEST 2006


Jan Gerene wrote:
> Op donderdag 03 augustus 2006 14:53, schreef Christopher H. Laco:
> 
>> All Currency-like fields actually return a Handel::Currency object that
>> just happens to stringify to the price. The format/convert methods are
>> located in Handel::Currency.
>>
>> http://search.cpan.org/~claco/Handel-0.33/lib/Handel/Currency.pm
>>
>> For format function itself uses Locale::Currency::Format to do the
>> formatting work. It is in that modeul you will find the options:
>>
>> http://search.cpan.org/~tnguyen/Locale-Currency-Format-1.22/Format.pm
>>
> 
> Thanks for the info, it did not work since I did not have the 
> Locale-Currency-Format module installed.  
> Now, I have the currency symbol (USD) as expected.
> 
> 

That's a good point. The format/convert methods should probably warn
heavily when Locale::Curreny::Format isn't installed.

-=Chris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.rawmode.org/pipermail/handel/attachments/20060803/654fdb3c/attachment.pgp 


More information about the Handel mailing list