in reply to Implicit assignment to $_

Your code:

"Test A"or"Test B"; print;
suggests you think $_ refers to the last evaluated expression. It does not. $_ is not python's underscore in interactive mode.