Re: force requiring a file

2006-02-15 Thread JeeBee
Do I spot a space between ricerche/ and VALICO1497.pl? Is that space also in $nf? > Can't locate > /Library/WebServer/CGI-Executables/ e-allora/enter/ricerche/ VALICO1497.pl Try print "<$nf>"; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: force requiring a file

2006-02-15 Thread Adriano Allora
Il giorno 14/feb/06, alle 22:16, Tom Phoenix ha scritto: [...] Better yet, use absolute pathnames, not relative ones, to locate code. That's for security reasons. quite strange: I launched the perl script in this odd-way (to test if I was in the correct directory): adrianoallora$ /Libra

Re: force requiring a file

2006-02-14 Thread Tom Phoenix
On 2/14/06, Adriano Allora <[EMAIL PROTECTED]> wrote: > Can't locate ./ricerche/VALICO672.pl in @INC (@INC contains: > the pathname is correct (the code in the separate file too), alla > permissions are ok, but I cannot include it. The dot at the start of the pathname means that the pathname is

force requiring a file

2006-02-14 Thread Adriano Allora
Hi all, I need to execute the code found in a separate file (that file is written by another script). I wrote: my $nf = shift(); chomp($nf); require("./ricerche/$nf.pl"); see what happens: Can't locate ./ricerche/VALICO672.pl in @INC (@INC contains: /System/Library/P