Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: printf



Oliver Kiddle wrote:
> Is this `_' a new perl feature:
>     perl -e 'printf "%_g\n",132643.45'
> does not work with 5.0005_03 or am I putting the underscore in the
> wrong place. We can always offer a choice of flag character here.

Ah, I misinterpreted.  I meant on input:
  perl -e 'print 3_000 + 2_000, "\n"'
But that's up to the math code, probably an easy addition.

> This returns me to using sprintf which should be okay.

That sounds like the best bet.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 392070


**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
prohibited.  
If you received this in error, please contact the sender and 
delete the material from any computer.
**********************************************************************



Messages sorted by: Reverse Date, Date, Thread, Author