From playing with B, I see that a B::LOGOP object (call it “$op“) referring to either a && or and operator will both return “and” upon calling $op->name. Is it possible to determine which operator the LOGOP refers to merely by examining $op?
From playing with B , I see that a B::LOGOP object (call it $op
Share
I am not expert for perl internals, but
LOGOPrefers to logical operator group. So I don’t think you can know individual operator without examining the name. Even B::Terse displays it:Shows: