Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Class::DBI and DB design

by tunaboy (Curate)
on Jun 06, 2003 at 22:15 UTC ( #263874=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package My::User;
    
    ...
    __PACKAGE__->has_a( 'user' => 'My::User' );
    __PACKAGE__->has_a( 'capability' => 'My::Capability' );
    
  2. or download this
    foreach ( $user->capabilities() ) {
        print $_->capability->name(), "\n";
    }
    
  3. or download this
    foreach ( $capability->users() ) {
        print $_->user->name(), "\n";
    }
    
  4. or download this
    sub get_capabilities {
        my ( $self ) = @_;
    ...
    
        return map { $_->capability->name() } @capabilities;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2014-12-26 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls