home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / perl / 5693 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1015 b   |  32 lines

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