home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!mcsun!sun4nl!aie.nl!hansk
- From: hansk@aie.nl (Hans Kinwel)
- Subject: Very tiny bug in printf? (perl 4.034)
- Message-ID: <1992Sep3.020523.22087@aie.nl>
- Organization: AI Engineering BV, Amsterdam, The Netherlands
- Date: Thu, 3 Sep 1992 02:05:23 GMT
- Lines: 22
-
-
- I expected the following three lines to print out 08 two times.
-
- $val="8";
- printf ("%02s\n", $val);
- printf ("%02d\n", $val);
-
- It does, under perl 3.044. My perl 4.034 does not, however.
- There the first zero gets replaced by a space. This is under ISC 3.0.
- Not a big deal, of course. But it bit me.
- Is it me? Can't I read manpages? Is it old news?
-
- Oh well, here it is. FYI.
-
- And now I have the mike: thank you Mr Wall, Christiansen and Schwartz
- (do I dare say Larry, Tom and Randal? Nah... :) for the tremendous
- support you give in this group.
-
-
- --
- | "The meek shall inherit the Earth -- | hansk@aie.nl |
- | The rest of us will go to the stars." -- R.H. | (old Henry Spencer sig) |
-