Hi All, This is probably a simple problem. So i'm trying to write something to a CSV file but I want to replace part of the file with a string stored in a variable. When I tried the code below it printed the variable name i.e $test rather than the string "functionTest". I also tried inserting double quotes but no luck. Any ideas? Thanks in advance!
use strict; my $test = "functionTest"; open (MYFILE, '>>Z:\My Documents\Workspace\$test.csv'); print MYFILE "app1,stuff,stuff,stuff\n";