M
Mike Mimic
Hi!
I tryed to use do() function in mod_perl 1.27 but as I found out that
does not work. For example
test.pl:
#!/usr/bin/perl
my $test = 0;
do 'text.cf';
print "Content-type: text/html\n\n";
print $test;
test.cf:
$test = 1;
prints 0 and not 1. Files are in the same directory and there is '.' in
@INC.
scalar eval `cat test.cf` works but I really would not like to use this.
I use this for including configuration data.
Mike
I tryed to use do() function in mod_perl 1.27 but as I found out that
does not work. For example
test.pl:
#!/usr/bin/perl
my $test = 0;
do 'text.cf';
print "Content-type: text/html\n\n";
print $test;
test.cf:
$test = 1;
prints 0 and not 1. Files are in the same directory and there is '.' in
@INC.
scalar eval `cat test.cf` works but I really would not like to use this.
I use this for including configuration data.
Mike