ActiveState Powered by ActiveState

ActiveState Community


FindBin Does Not Work

Posted by ent on 2008-02-17 02:44

Can anyone tell me why FindBin doesn't work for me? Here is my whole
script:

<% @LANGUAGE="PerlScript" %>
<%
use FindBin;
%>

Here's the error message:

Error Type: PerlScript Error (0x80004005)
Cannot find current script '' at C:/Perl/lib/FindBin.pm line 206
BEGIN failed--compilation aborted at C:/Perl/lib/FindBin.pm line 206.
Compilation failed in require at (eval 2) line 1.
BEGIN failed--compilation aborted (in cleanup)
Cannot find current script '' at C:/Perl/lib/FindBin.pm line 206
BEGIN failed--compilation aborted at C:/Perl/lib/FindBin.pm line 206.
Compilation failed in require at (eval 2) line 1.
BEGIN failed--compilation aborted
/jwatch/woof.asp, line 3

Also, $0 returns nothing. This is running on a Windows 2000 box.
Would this happen if my sysadmin didn't install the package using
Admin privileges?

Thanks.

ent | Wed, 2008-04-16 18:43

Anybody? Why no findbin and no $0 or $PROGRAM_NAME?

Is there a way to get the script name that doesn't require using the $Request object?

-->