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$
/Library/WebServer/CGI-Executables/e-allora/enter/4-interroga.pl
VALICO1497
the perl code include this lines (absolute pathname):
require("/Library/WebServer/CGI-Executables/e-allora/enter/ricerche/
$nf.pl") or print STDOUT "insomma: $! or: $^E\n";
the result:
Can't locate
/Library/WebServer/CGI-Executables/e-allora/enter/ricerche/
VALICO1497.pl in @INC (@INC contains:
/System/Library/Perl/5.8.1/darwin-thread-multi-2level
/System/Library/Perl/5.8.1
/Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1
/Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level
/Network/Library/Perl/5.8.1 /Network/Library/Perl .) at
/Library/WebServer/CGI-Executables/e-allora/enter/4-interroga.pl line
19.
The same result substituting the variable in the require argument (I
try everything I could think).
In a later moment I tried to use open, while and eval $_ too. But with
no results (the script doesn't recognise the variables in VALICO1497).
I cannot understand where I mistake.
Thank you for every help,
alladr
|^|_|^|_|^| |^|_|^|_|^|
| | | |
| | | |
| |*\_/*\_/*\_/*\_/*\_/* | |
| |
| |
| |
| http://www.e-allora.net |
| |
| |
**************************************
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>