perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <>
Subject RE: questions from a new Embperl user
Date Tue, 28 Sep 2004 03:14:47 GMT

> (1) what's the best place to store DB username/password?  
> right now I have it hardcoded into the perl code and this is 
> both unmaintainable and a security hazard I think.  I was 
> thinking maybe each html file should start off with [- 
> require '' -] or something like that to get 
> information that all the scripts use collectively.  Maybe 
> there's a better way?

Basicly that's a good idea. If you using Embperl 2.0 (what I am recommend)
than you can use the application object feature of Embperl. This will do the
"require" and a call do a init method for you. See perldoc
Config.pod and perldoc Embperl::Object.

> (2) what's the preferred way to do persistent database 
> connections?  there seem to be many modules for that.

I use Apache::DBI

> Thanks for your help.  I love Embperl, by the way, it is so 
> much better than plain old cgi scripts :-)



Gerald Richter            ecos electronic communication services gmbh
IT-Securitylösungen * Webapplikationen mit Apache/Perl/mod_perl/Embperl

Post:       Tulpenstrasse 5          D-55276 Dienheim b. Mainz
E-Mail:          Voice:   +49 6133 939-122
WWW:      Fax:     +49 6133 939-333
ECOS BB-5000 Firewall- und IT-Security Appliance:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message