Scott Chapman wrote:
> I have a constant.epl file that defines some variables as part of $req:
> 
> [-
>     $req = shift;
>     $req->{website_database} = 'DBI:Sprite:/www/db/Annual_Review';
>     $req->{website_event_table} = 'ar_events';
>     $req->{website_sequence} = 'ar_num';
>     $req->{db_user} = 'username';
>     $req->{db_pass} = 'password';
> -]
> 
> I need to get at those definitions in a perl script outside the www 
> environment and I'm not sure how to do it.  Is there a easy way to do this?

My first suggestion would be to look at HTML::Embperl::Execute, and see 
if you can send it a reference to your own request object.

I agree with idea that someone else had though... move the configuration 
into it's own module that both embperl pages and perl scripts can load. 
Or, just store it in a text file that the config routine can load.

Wim



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to