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}