I'm trying to write a script to compile some java code, but I think I'm not writing the slashes correctly. I'm trying to do it like this:
$java_opt = "-g";
$class_dir = $ENV{CLASS_DIR};
$MakeMain = "javac $java_opt $class_dir\comm\client\Main.java";
system($MakeMain);
The compilation bombs out. I think that it's interpreting the slash characters wrong. Do I need to put another slash in front of them, or what?