I have a Perl program that reads one file and writes to another file. Both files located in the same directory where the program is located c:\test lets say. If I am running the program by calling it from c:\perl test.pl it looks for files in c instead of c:\test.
How can resolve this issue?
$PATH = cwd();
open(SRC, "$PATH/mun.txt") || die ("Cannot find the file");
open(DAT, ">$PATH/mun1.csv") || die("Cannot Open File");