Help for this page

Select Code to Download


  1. or download this
    package Stuff;
    use base 'Class::DBI::mysql';
    
    ...
    use Stuff ('dbi:mysql:dbname', 'gryphon', 'password');
    my $item = Stuff::Item->retrieve(1);
    print $item->name, "\n";
    
  2. or download this
    use Class::DBI::AutoLoader (
      dsn       => 'dbi:mysql:dbname',
      username  => 'gryphon',
    ...
    );
    my $item = Stuff::Item->retrieve(1);
    print $item->name, "\n";