That's what I believe, yes. I actually don't know how Perl optimises things, though, so you may actually be right. I don't think it does, though, because as you note, $u could theoretically change, and I don't think Perl will attempt to optimise that.
no subject