Theresa,
one way to go about this is to create your own module which has the
connection details in it (or reads from ENV/external XML file etc) and also
has your data access subroutines. Then instantiate instances of this modules
whereever you need to.

This is the best URL I can find which talks about packaging code up
http://perl.about.com/library/weekly/aa092100a.htm?terms=module

joel


-----Original Message-----
From: Theresa Mullin [mailto:[EMAIL PROTECTED]]
Sent: 15 July 2002 20:31
To: [EMAIL PROTECTED]
Subject: Subroutines


Hi Everyone,

I am writing a program in which I am connecting to an oracle database.
I would like to put the environment variables and the connection routine
into a separate subroutine, so I don’t have to keep re-copying the code.
What’s the best way to go about this?

Thanks,
Theresa

Theresa M. Mullin
Programmer/Analyst
Administrative Computing
Northern Essex Community College
100 Elliott Way
Haverhill, MA  01830
(978) 556-3757
[EMAIL PROTECTED]




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to