Code:
use Sys::Hostname;
$host = hostname;
$conf = "$host_file.txt";
print "$conf\n";
changing the $conf line to:
Code:
$conf = '$host_file.txt";
How do I get $conf to return the actual hostname in $host so it prints realhostname_file.txt ?