in reply to dependencies and loose coupling
That means your script is free to do however much processing it needs to do before you set up the connection.
Like this:
use Music::DBI; use Music::Artist; yadda(); yadda(); yadda(); # where yadda does not touch the database Music::DBI->connection('dbi:mysql:$dbname,$user,$pass); $art=Music::Artist->create(.....) # etc
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: dependencies and loose coupling
by perrin (Chancellor) on May 12, 2004 at 22:09 UTC |