Path: utzoo!attcan!telly!eci386!clewis From: clewis@eci386.uucp (Chris Lewis) Newsgroups: comp.lang.perl Subject: Re: Is this how formats are supposed to work? Message-ID: <1990Jan17.162117.11083@eci386.uucp> Date: 17 Jan 90 16:21:17 GMT References: <1990Jan15.185922.20098@eci386.uucp> <6798@jpl-devvax.JPL.NASA.GOV> Reply-To: clewis@eci386.UUCP (Chris Lewis) Organization: R. H. Lathwell Associates: Elegant Communications, Inc. Lines: 26 In article <6798@jpl-devvax.JPL.NASA.GOV> lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) writes: > In article <1990Jan15.185922.20098@eci386.uucp> clewis@eci386 (Chris Lewis) writes: | > [regarding trying to set numeric display formats, and $# doesn't work.] | : Assigning "%.2g" to $# (after selecting the handling associated with the | : stream) doesn't appear to affect anything and things are printed with | : more than 2 decimal places. | Maybe it should work this way--I haven't thought about it. Or maybe we | need numeric "pictures". If I had my druthers (then again, it's your code not mine ;-), I'd prefer numeric pictures, and *not* have $# take effect. Numeric pictures have the risk of turning Perl into Cobol (yuck ;-), but a small increment would greatly improve perl's use in a variety of things - primarily decimal point placement. Eg: @>>>>>>.>> | For the time being, just slap an sprintf around the variable name. That's what I did. Thank you! (for this, and everything else) -- Chris Lewis, Elegant Communications Inc, {uunet!attcan,utzoo}!lsuc!eci386!clewis Ferret mailing list: eci386!ferret-list, psroff mailing list: eci386!psroff-list