Date: 20 Sep 2001 17:28:55 GMT From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel) Subject: Re: Limiting floating point decimal places. Message-Id: <9od90n$5qv$1@mamenchi.zrz.TU-Berlin.DE> According to Mark Jason Dominus : > In article , > Uri Guttman wrote: > > CF> Also look at $OFMT and $# in the perlvar manual page. > > > >$# is deprecated and not useful. i think it is also broken in some ways. > > It's extremely broken. Try this: > > $s = 1.23456789; > $# = '%.0f'; > print $s, "\t$s\n"; > > I doubt anyone has ever successfully used $# for anything. So do I. > I'd really like to see an example of a program that uses it successfully. I would rather not see one, because that would mean we can't re-use $# for the more useful loop index in for-loops. Then again, I don't think we are going to see this kind of change before Perl 6 anymore. Anno