|Just another Perl shrine|
Windows - dirname(__FILE__)by demichi (Acolyte)
|on Apr 11, 2014 at 11:33 UTC||Need Help??|
demichi has asked for the
wisdom of the Perl Monks concerning the following question:
I have the following code.
When I run the script I get the following output:
This is what I expect. I get the full path of the directory. All is good.
However when I run the script with the interpreter I get the following:
I just get the "." for the current directory.
Why is this the case? How can I always get easily the full path of the directoy where my script is running - no matter how the user calls the script?
(It must work on Windows and would be nice if this also runs on Unix).
Thanks for your help.regards deMichi