No such thing as a small change | |
PerlMonks |
Re^2: Special undefs with attributesby bsb (Priest) |
on Sep 25, 2006 at 03:57 UTC ( [id://574656]=note: print w/replies, xml ) | Need Help?? |
sub FETCH { return undef } works for defined($undef) and
(tied $undef)->{exists} can store out of band properties.
I couldn't get this to round-trip with YAML, I guess special serialization code would be required, either using YAML::Node or some caller() checking kludge in FETCH. Then deserializing would need another hack... nevermind Brad
In Section
Seekers of Perl Wisdom
|
|