DBomb::Tie::PrimaryKeyList - A list of primary keys that auto creates objects when fetched.
tie @ids, 'DBomb::Tie::PrimaryKeyList', 'MyPackage::Customer'; ## store plain ids, or PrimaryKey objects in the list for (@{$dbh->selectrow_arrayref("SELECT id FROM Customer")){ push @ids, $_; ## Stores the [id] key. } ## Later, fetch the ids as objects. $customer = $ids[0]; print $customer-name;
To install DBomb, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBomb
CPAN shell
perl -MCPAN -e shell install DBomb
For more information on module installation, please visit the detailed CPAN module installation guide.