WORKS: open ('$comb', "c:\\my\\dest\\dir\\" . $comb . "found.txt") Unable to figure out the print function. ERROR: print $comb $var_c . "content detail for file found\n";