|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Hello again.
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? Thanks! http://www.datera.com |
|
#2
|
|||
|
|||
|
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. - Erik ------------------ -Erik |
|
#3
|
|||
|
|||
|
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?
plato |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > MySQL & Perl Programming? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|