my $file = "/home/htdocs/hosted/thinweb/trainingboard.co.uk/consumers/savedsearches/$g{'SearchFile'}"; open(WRITE,">$file") or die $!; #### chdir "/home/htdocs/hosted/thinweb/trainingboard.co.uk/consumers/savedsearches"; open(WRITE,">$g{'SearchFile'}") or die $!;