more useful options | |
PerlMonks |
Re^3: Prefix and postfix increment/decrement operator queryby saurabh.hirani (Beadle) |
on Jul 03, 2009 at 04:50 UTC ( [id://776935]=note: print w/replies, xml ) | Need Help?? |
In my opinion, a lexically scoped $var is a very cheap thing and should be used if there is any doubt about some subsequent statement. I'm not advocating creating extra unnecessary vars, just ones that "add clarity".
I agree with you. I had posted this query because I thought about the expression behaving in a certain manner but it didn't. So it was pure curiosity. Thanks for that addition. I too wouldn't use such ambiguity in my work.
In Section
Seekers of Perl Wisdom
|
|