Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!convex!usenet From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.lang.perl Subject: Re: How about a finicky printf()? Keywords: printf, format string, bounds checking Message-ID: <1991Jun23.114615.29704@convex.com> Date: 23 Jun 91 11:46:15 GMT References: <430@paralogics.UUCP> <431@paralogics.UUCP> Sender: usenet@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 12 Nntp-Posting-Host: pixel.convex.com If I want my array bounds checked, I'll do so myself, using the defined() operator or $# or something else. Use -w if you're worried about inappropriately using something before it's defined. As for printf and sprintf behaving as they do, this makes it easier to write variatic functions: sprintf($mask, @args). Perl is more forgiving that C: if you blow something, you don't get a coredump, you (usually) just get a null value. I happen to like this. --tom -- Tom Christiansen tchrist@convex.com convex!tchrist "So much mail, so little time."