Re: fractional cents

Yitzchak Scott-Thoennes <[email protected]>
Newsgroups gmane.comp.lang.perl.fun
Organization bs"d
Message-ID <[email protected]>
On Mon, Apr 19, 2004 at 11:22:21PM +0200, "A. Pagaltzis" <[email protected]> wrote:
> Because I think
> 
>     chop if /\.\d\d0\z/;
> 
> is clearer to read than
> 
>     s/(?<=\.\d\d)0\z//;
> 
> or even (yuck!)
> 
>     s/(\.\d\d)0\z/$1/;

do{local $/=0;chomp}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.