Date: Wed, 19 Sep 2001 18:18:04 GMT From: mjd@plover.com (Mark Jason Dominus) Subject: Re: Limiting floating point decimal places. Message-Id: <3ba8e15c.4a55$2ac@news.op.net> 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. I'd really like to see an example of a program that uses it successfully. -- @P=split//,".URRUU\c8R";@d=split//,"\nrekcah xinU / lreP rehtona tsuJ";sub p{ @p{"r$p","u$p"}=(P,P);pipe"r$p","u$p";++$p;($q*=2)+=$f=!fork;map{$P=$P[$f^ord ($p{$_})&6];$p{$_}=/ ^$P/ix?$P:close$_}keys%p}p;p;p;p;p;map{$p{$_}=~/^[P.]/&& close$_}%p;wait until$?;map{/^r/&&<$_>}%p;$_=$d[$q];sleep rand(2)if/\S/;print