in reply to Re^2: Why doesn't perl optimize this?
in thread Why doesn't perl optimize this?

What if @a is tied? What if it has other magic attached? You and I both know it almost never does, but the cost of detecting those cases is substantial.