home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!darwin.sura.net!jvnc.net!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!exodus.Eng.Sun.COM!sundance.Eng.Sun.COM!stanton
- From: stanton@sundance.Eng.Sun.COM (W. Dean Stanton)
- Newsgroups: comp.lang.perl
- Subject: Buglet in Programming perl book regading ctime perl library
- Date: 18 Nov 1992 18:13:13 GMT
- Organization: Sun Microsystems Inc., Mountain View, CA
- Lines: 16
- Message-ID: <lgl1tpINNpgh@exodus.Eng.Sun.COM>
- NNTP-Posting-Host: sundance
- Keywords: ctime.pl bug error newline \n ctime timestamp string
-
- In the book _Programming perl_, March 1992 edition, on page 402,
- in the discussion of "ctime.pl" (the ctime routine for converting
- a timestamp into a string) the example
- print &ctime(time),"\n";
- is incorrect because ctime.pl (and the Unix ctime routine)
- include the newline on the end of the string returned.
- It should be simply:
- print &ctime(time);
-
- P.S., I'm not a reader of comp.lang.perl, so don't bother flaming me
- if everyone already knew this.
- --
- - W. Dean Stanton, (415) 336-7417 or 960-1300
- Graphics Software, Mail Stop MTV21-04
- Sun Microsystems, 2550 Garcia, Mountain View, CA 94043
- dstanton@Sun.COM (Mountain View Building 21, Room 2280A)
-