On Mon, Feb 11, 2002 at 07:11:17PM +1100, Stuart wrote:
>
> 54.35
> 435.23
> 1.98
> 57
>
> to this
>
> 00005435
> 00043523
> 00000198
> 00000057
>
> This is what i am trying to use.
>
> print (s\.\\,(sprintf"%09.2f",$number));
>
> I thought that perl would complete the inside brackets first
> Then the s\.\\ would operate on the result.
---end quoted text---
howabout :
/([0-9]*\.?[0-9]+)/ and printf("%09.2f",$1/);
--
Frank Booth - Consultant
Parasol Solutions Limited.
(www.parasolsolutions.com)
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]