Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

$foo->bar = 14; revisited: Attribute::Property

by Juerd (Abbot)
on Feb 08, 2003 at 13:08 UTC ( #233694=perlmeditation: print w/ replies, xml ) Need Help??

In $foo->bar = 14;, I explained that I would like to use lvalue methods as object properties. shotgunefx, Aristotle and jimc pointed out that you'd no longer have a way of checking values. shotgunefx mentioned tieing. Here's the result:
Attribute::Property

Suggestions are welcome, of course. The module is intended to be uploaded to CPAN.

Update: Lots of great input from xmath (#perlhelp on efnet) integrated.
Update: Removed code, placed link.

Juerd
- http://juerd.nl/
- spamcollector_perlmonks@juerd.nl (do not use).

Comment on $foo->bar = 14; revisited: Attribute::Property

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://233694]
Approved by gmax
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2015-07-28 03:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (252 votes), past polls