i have written a my first db app in perl, using multiple scripts. I wish to know if there is a way in which i may write the connect code once and call it each time a connection is needed.
The connect code looks like this
my $dbh = DBI->connect("DBI:Sybase:CRAP", "sa", "");