Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

You missed my point

by cbraga (Pilgrim)
on Oct 01, 2003 at 06:13 UTC ( [id://295528]=note: print w/replies, xml ) Need Help??


in reply to Re: bless + tie
in thread bless + tie

I wanted to get rid of getter/setter methods (even those generated by autoload) replacing them with hash access, while preserving object integrity by intercepting the hash accesses and possibly processing them in a tied hash fashion...

Replies are listed 'Best First'.
Re: You missed my point
by tachyon (Chancellor) on Oct 01, 2003 at 06:38 UTC

    My point would be what on earth for. Just so you can do this:

    print "Blah $obj->{attribute} blah\n"; # instead of print "Blah ", $obj->get_attribute(), " blah\n";

    Seems to me all you achieve is to obfuscate your code, make it less maintainable, and slow it down.....

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

      The original notes:
      (to) interpolate them inside a string

      Not much of a reason, but there it is.

      It also could be used to speed up an application by developing with his simple data objects and then switching to plain old hashes live.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-23 21:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found