Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Special undefs with attributes

by bsb (Priest)
on Sep 25, 2006 at 03:57 UTC ( [id://574656]=note: print w/replies, xml ) Need Help??


in reply to Re: Special undefs with attributes
in thread Special undefs with attributes

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://574656]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-25 22:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found