Re: perl


Subject: Re: perl
From: Greg Jetter (greg@lazymountain.com)
Date: Tue Apr 16 2002 - 17:06:23 AKDT


On Monday 15 April 2002 07:59 am, Chris Hamilton wrote:
> I've got a question for perl people.
>
> Inside a script I want to refer to another script (and have the variables
> carry over). I want to have a separate script that has all my database
> connection info, so I can refer to this script whenever connecting to a
> particular database. I've got the Learning Perl book, but it doesn't
> explain how I would do this. Any hints would be helpful. Thanks.
>
> Chris.
>
>
>
> ---------
> To unsubscribe, send email to <aklug-request@aklug.org>
> with 'unsubscribe' in the message body.

The simple way to do it would be to put all of your data routeens in a
modual , make objects out of them and then when you need a routeen in nother
script , call the method out of your module andpass it data to work with.

all you got to do then is call the routreen

Greg

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Tue Apr 16 2002 - 16:51:20 AKDT