That's pointless. When perl optimizes away an opnode, it just stops pointing to it. Null nodes have no runtime impact since they are never seen by the interpreter. They still consume a bit of memory and are still present but you only ever see them when you dump the optree.