March 18th, 2000, 12:12 AM
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, 11: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, 08: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?