Re: use lib error

2016-12-09 Thread mehryar
Thanks Adam, I think you were right. There was a small difference in the simplified example I wrote below to the actual script I was running. The actual script actually had the path: use lib '../../lib'; # which was correct relative to the script. But when I switched this to: use l

Re: use lib error

2016-12-08 Thread Adam Prime
igured for > Modperl::Registry: > > > #!/usr/local/bin/perl > use strict; > use warnings > > use lib '../lib'; > use MyApp; > > print "Content-type: text/html\n\n"; > print "hello\n"; > - > > This script run

use lib error

2016-12-08 Thread mehryar
Hi folks, A noobie question here: I have a plain simple cgi script in a directory configured for Modperl::Registry: #!/usr/local/bin/perl use strict; use warnings use lib '../lib'; use MyApp; print "Content-type: text/html\n\n&q

Re: use lib

2007-06-12 Thread Frank Wiles
On Tue, 12 Jun 2007 16:29:33 -0400 "Perrin Harkins" <[EMAIL PROTECTED]> wrote: > On 6/12/07, Frank Wiles <[EMAIL PROTECTED]> wrote: > >This might not be related, but Catalyst doesn't support running > > two "instances" of the same application at the same time. Unless > > you're using the late

Re: use lib

2007-06-12 Thread Perrin Harkins
On 6/12/07, Frank Wiles <[EMAIL PROTECTED]> wrote: This might not be related, but Catalyst doesn't support running two "instances" of the same application at the same time. Unless you're using the latest source repository checkout, it'll be rolled into the next release I hear. Runn

Re: use lib

2007-06-12 Thread Frank Wiles
On Mon, 11 Jun 2007 19:18:26 -0400 "Perrin Harkins" <[EMAIL PROTECTED]> wrote: > On 6/9/07, Octavian Rasnita <[EMAIL PROTECTED]> wrote: > > PerlSwitches -Ie:/web/ANR/lib > > PerlModule ANR > > ... > > > > But the server writes in the log that the module ANR cannot be > > loaded. > > Try dumping o

Re: use lib

2007-06-11 Thread Perrin Harkins
On 6/9/07, Octavian Rasnita <[EMAIL PROTECTED]> wrote: PerlSwitches -Ie:/web/ANR/lib PerlModule ANR ... But the server writes in the log that the module ANR cannot be loaded. Try dumping out @INC to see what your PerlSwitches command is putting in there. I am interested in this, because I tr

use lib

2007-06-09 Thread Octavian Rasnita
"e:/web/ANR/script/preload.pl" The file preload.pl contains: #!d:/usr/bin/perl use lib 'e:/web/ANR/lib'; use ANR; 1; What is wrong when using the first method? I am interested in this, because I try to see why 2 Catalyst applications cannot run both in the same time, but th