in reply to Help with modules!

Without more info, it's hard to determine what you exactly want. All you need to do is pass the variable to the appropriate method.

$dbi = new ... $mod = new MyModule(); $mod->a_method( $dbi ); .... package MyModule # different file I assume sub a_method { my( $self, $dbi ) = @_; $dbi->quote( ... ); } ...

Granted there are a lot better styles. Depending on how many methods need a database handle, passing it to each method may not be the best practice.

-derby