in reply to scalar polymorphism
Use "dualvar" from Scalar::Util.
"The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg