Has to do with ++ being magical and -- not being magical. It appeared on the list a while back, but there was to be no change in how the ++ or -- would act.
Wags ;) -----Original Message----- From: Gross, Stephan [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 01, 2001 12:46 To: 'Beginner Perl' Subject: Increment & Decrement Strangeness The following script: $a ="X"; $a++; print $a; $a--; print $a; prints Y -1 Why does the autoincrement work in the + direction but not in the -? How do I get the letter before "Y" back? Is this a Perl bug? _______________________________________________________ Stephan Gross Loral Skynet 908-470-2388 [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]