Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 taking refuge in the Monastery: (4)
As of 2014-09-15 02:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (145 votes), past polls