srand

2009-04-04 Thread Stanisław T. Findeisen
Hello I have a question regarding srand() usage with mod_perl. The documentation says: === Do not call srand() (i.e. without an argument) more than once in a script. The internal state of the random number generator should co

Re: How to require() a file?

2009-02-27 Thread Stanisław T. Findeisen
Michael A. Capone wrote: I believe the ../ in there may be what's throwing things off. That would probably interpolate as /home/stf/public_html/test/arcv/common.pl ... which, unless that is indeed where common.pl is located, would generate the error you're seeing. Yes this is where com

How to require() a file?

2009-02-27 Thread Stanisław T. Findeisen
I am trying to require() a file using its absolute name. In command line mode everything works fine, but not in Apache: [Fri Feb 27 17:45:07 2009] [error] Can't locate /home/stf/public_html/test/arcv/public_html/../common.pl in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thr