Even then there are two major issues to my mind:
Point 2 is seen as sufficient of an issue that many compilers generate warnings for assignment in conditional expressions. I love the way that Perl allows terse functional chords that allow the equivalent of many lines of code in other languages to be wrapped up in a single compact statement. But playing tricks with side effects just to save a line of code doesn't sit well with me.
I'm completely fine with the equivalent assignment in a while statement though - go figure.
In reply to Re^4: scope of variables in a sub
by GrandFather
in thread scope of variables in a sub
by frontrange
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |