Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!convex!usenet From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.lang.perl Subject: Re: alpha numbers Message-ID: <1991Jun24.080038.28256@convex.com> Date: 24 Jun 91 08:00:38 GMT References: <1991Jun23.200134.18835@pronto.mh.nl> Sender: usenet@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 26 Nntp-Posting-Host: pixel.convex.com From the keyboard of Johan Vromans : :Perl 4.010, System Ultrix/RISC, GCC compiled. : :Exhibit 1: : : $a = "1a"; : $b = $a + 1; : :I would have expected an error (or at least a warning). No, it's always done that -- atoi()d a for the number part. :Exhibit 2: : : $a = "1a"; : $a++; : :IMHO, the correct value for $a should now be "1b", not 2. Hmm... in mine as well. 'aa' goes to 'ab'; why shouldn't '1a' go to '1b'? --tom -- Tom Christiansen tchrist@convex.com convex!tchrist "So much mail, so little time."