Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Why get() and set() accessor methods are evil

by hardburn (Abbot)
on Nov 25, 2003 at 17:30 UTC ( #309969=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foo    ENUM( "bar", "baz") NOT NULL
    
  2. or download this
    my $foo_bar = 1;  # Could store the string representation, too
    my $foo_baz = 2;
    ...
        inflate => sub { my $f = shift; bless \$f, __PACKAGE__ . '::FOO' }
    +, 
        deflate => sub { my $f = shift; $$f; }, 
    );
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2021-01-15 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?