March 17th, 2000, 11:12 PM
I am attempting to create a perl program, that runs off of a mySQL database. The first perl script initializes the database, then uses it. The first script then calls the second (as a frame in the page created). Do I need to initialize mySQL (connect) again in the second script?
March 27th, 2000, 10:19 AM
The answer is (probably) yes.
The question is really whether the "called script" inheirits the open file descriptors of the "caller". For most scripting languages (and the perl implementations that I know of), the answer is no, and so you have to open the connection again.
April 18th, 2000, 07:21 AM
I agree with Erik. I don't see how a file descriptor can be passed from one script to another. Maybe by setting an environment variable?