Thread relative Pfadangaben in Perlscripten ermöglichen, aber WO?
(8 answers)
Opened by Wolfgang_muc at 2010-05-29 11:21
und spätestens wenn man echte mod_perl handler benutzt, hat man dann gar kein "binary" mehr. unter mod_perl benutze ich deshalb dir_config, um z.b. den pfad der config-datei auszulesen:
Code (perl): (dl
)
1 2 3 4 my $inifile = $r->dir_config->get('inifile'); # und in der httpd config: # PerlSetVar inifile /path/to/foo.ini Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: ![]() ![]() |