At 01:15 AM 7/1/02 -0400, Michael Turner wrote: >>>$b = $b++; >>The simple answer is *DON'T DO THAT*. :-) >>John > >Ok, :-) but I suggest that when 'use warnings' is true, this >construction should be warned. It fails silently.
No, it's not failing. The behavior is undefined. Possibly the documentation neglects to say this; I haven't checked. If it's not there then the documentation is incomplete. Undefined behavior means it's free to do what it wants and doesn't have to give any warning. This is not the only undefined behavior in Perl by a long way. Virtually every language I have used has such constructions. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]