http://www.perlmonks.org?node_id=1225858


in reply to Re^2: B::Xref buggy?
in thread B::Xref buggy?

Looking at the src code for B::Xref, it appears to scan the op tree in execution (op_next) order, noting the current line and file number any time it sees an OP_NEXTSTATE. When it comes to an op that has more than one possible next op (such as loops etc) it recursively follows each branch, without restoring the old file/line number on each return. Thus giving silly results.

Dave.