here is a tidbit of the code I need to alter..
Expand|Select|Wrap|Line Numbers
- $fileInput=$ARGV[0];
- $fileOut="output".$ARGV[0];
- $fileCompare="compare".$ARGV[0];
- $fileTtbl="Ttbl.csv"
- $file0=$ARGV[1]
- open (READER,$fileO);
- open (TT,$fileTbl);
- open (READ, $fileInput);
- open (WRITE, ">$fileOut");
- open (SPIKE, ">$fileCompare");
so this code works fine if say I am in the directory where the .pl and the .csv files are located.. eg
d:\temp>perl altercsv.pl test.csv test.csv
I want to be able to change the directory of the .csv files.. eg
c:\>perl d:\temp\altercsv.pl d:\data\test.csv d:\data\temp\test.csv
I've seen on other posts where perl uses the backslash as an escape? not complete sure what this means, and I also have seen where perl treats \ and / as the same, so tried
c:\>perl d:/temp/altercsv.pl d:/data/test.csv d:/data/temp/test.csv
have also tried \\ and "" and ''
not sure where to go from here! any help will be greatly appreciated!
Thanks,
eric