> > Did this come up in a real-world situation, or were you specifically
> > seeking to test the limits of Perl? In other words, what problem, if
> > any, are you trying to solve?
>
> Teaching Perl to students, and to get them to understand the difference
> between pre and post increment.
>
So, I guess you have a much BETTER lesson to teach: Multiple
assigments to a variable between sequence-points (to borrow from C
terminology) can result in bizarre behavior and should be avoided.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Lawrence Statton - [EMAIL PROTECTED] s/aba/c/g
Computer software consists of only two components: ones and
zeros, in roughly equal proportions. All that is required is to
sort them into the correct order.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>