If you use @ISA I think you can do this because your module inherits from the modules listed in @ISA. However, it isn't the best or tidiest way of doing this.
The best thing to do is instatiate a DBI and CGI object in your module and make them accessible from the calling script - either by exporting them or making them part of the object.