Are you thinking perhaps of dualvar() from Scalar::Util?
In reply to Re^7: "last expression" quiz by chromatic in thread "last expression" quiz by fxn