plasmatwin
Programmer
ok, so if I have a perl script in a directory (eg "C:\perlscripts\")and I go to that directory and run it then "./config.conf" in the script will refer to the file "config.conf" in the same directory as the script ("C:\perlscripts\config.conf"), but if I am in a different directory (eg "C:\") and I type in "C:\perlscripts\script.pl" to execute the script then ./config.conf will refer to "C:\config.conf"
How do I find out what directory the perl script is in so that I can avoid this problem?
How do I find out what directory the perl script is in so that I can avoid this problem?