- or download this
create table my_database..foo
( bar int ,
baz varchar(10)
)
- or download this
use Table ( { -dbase => "my_database", -table => "foo" } );
my $f = my_database::foo->new( { bar => 1, baz => "neat" } );
- or download this
#Table's import method
...
*{"main::$dbase::$table::"} = *{"$dbase::table"};
}
- 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
- or download this
package mydb::foo;
@ISA = qw(Table);
...
package someotherdb::bar;
@ISA = qw(Table);