#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Posts
    108
    Rep Power
    15
    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. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    6
    Rep Power
    0
    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
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    8
    Rep Power
    0
    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

Similar Threads

  1. Replies: 1
    Last Post: April 14th, 2003, 03:04 PM
  2. perl + mysql problem
    By joebui in forum Perl Programming
    Replies: 3
    Last Post: April 7th, 2002, 09:44 AM
  3. Kernel Module Programming with perl
    By mountainman in forum Perl Programming
    Replies: 1
    Last Post: March 1st, 2002, 09:25 PM
  4. can perl dbi use to create mysql table ?
    By thenewuser in forum MySQL Help
    Replies: 1
    Last Post: August 27th, 2001, 12:26 PM
  5. using Perl to update MySQL automatically?
    By piksimoon in forum Perl Programming
    Replies: 4
    Last Post: July 31st, 2001, 09:25 AM

IMN logo majestic logo threadwatch logo seochat tools logo