Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by hardburn (Abbot)
on Nov 25, 2003 at 17:30 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://309969]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-18 17:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found