Help for this page

Select Code to Download


  1. or download this
    create table my_database..foo
    (    bar int ,
         baz varchar(10)
    )
    
  2. or download this
    use Table ( { -dbase => "my_database", -table => "foo" } );
    
    my $f = my_database::foo->new( { bar => 1, baz => "neat" } );
    
  3. or download this
    
    #Table's import method
    ...
        *{"main::$dbase::$table::"} = *{"$dbase::table"};
    }
    
  4. or download this
    use Table ( { -dbase => "mydb", -table => "foo" } );
    use Table ( { -dbae  => "someotherdb", -table => "bar" } );
    #results in the exporting of 2 class definitions:
    #mydb::foo and someotherdb::bar
    
  5. or download this
    package mydb::foo;
    @ISA = qw(Table);
    ...
    package someotherdb::bar;
    @ISA = qw(Table);