Paanwa <> wrote:
>
>> Perl is not CGI.
>>
>> The OP made no mention of what environment his Perl program runs in...
>
> Hi Tad,
>
> Thanks for pointing this out.
Is your Perl programming running in the CGI environment or is it not?
> I've not yet seen an environment with ENV
> can't return the script path -
I have no idea what you are talking about.
We have asked you before to clarify what you meant by "script path",
please try and do that.
I can't tell if you want the current working directory, or the
location of your program file in the filesystem, or the URL for
some CGI program.
Which one is it that you are trying to find?
There are potentially lots and lots of environment variables,
which one is it that you are talking about? I assumed it
was $ENV{PWD}...
> there are always exceptions. Can anyone tell
> me if there are performance consideration in using ENV vs Cwd?
Now I am even more confused about what it is that you are asking.
If you are asking about the "current working directory", then why
do you keep mentioning the location of the program file?
Where your program file exists in the filesystem is not related
to what your current working directory is.
We must understand what you are asking for before we can help
you find it.
Try again explaining what it is that you are asking for.
--
Tad McClellan SGML consulting
Perl programming
Fort Worth, Texas