You probably want dualvar from Scalar::Util
/J\
In reply to Re: scalar polymorphism by gellyfish in thread scalar polymorphism by jeteve