Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Autoclearing all accessors in a Mouse/Moose class

by yulivee07 (Sexton)
on Jan 29, 2016 at 12:55 UTC ( #1153991=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    \%data = { customer_number => $custno, country => $country, ticket_typ
    +e => $ticketsystem };
    $test_class = "Utils::Testclass::MyTest"->new($data);
    ...
        predicate => 'has_ticket_type',
        clearer   => 'clear_ticket_type',
    );
    
  2. or download this
    map {  $data{$_} = '' unless defined $data{$_} } keys %data;
    
  3. or download this
    has 'country' => (
        is        => 'rw',
    ...
                         }
                     }
    );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2023-11-28 16:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?