in reply to Operator Associative in Perl
Getting 56555 is not unreasonable. But another result wouldn't have been unreasonable either. In general, it's a bad idea to use ++ or -- twice on the same variable in the same statement is a bad idea. Or to assign to a variable in the same statement as you apply ++ or -- to that variable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Operator Associative in Perl
by catellus (Initiate) on Jun 04, 2009 at 17:24 UTC | |
by JavaFan (Canon) on Jun 04, 2009 at 17:31 UTC |