M
mark
Hello,
I have following program in linux:
open(DATA, "/etc/hostname");
$hostname = <DATA>;
print $hostname
if ($hostname eq "debian01") {
print "OK";
}
close(DATA);
Now, when I execute it I just got:
debian01
so it seems that $hostdata = "debian01" but there is no 'OK' string :/.
What is wrong?!? How can I make it working?!?
Regards, mark
I have following program in linux:
open(DATA, "/etc/hostname");
$hostname = <DATA>;
print $hostname
if ($hostname eq "debian01") {
print "OK";
}
close(DATA);
Now, when I execute it I just got:
debian01
so it seems that $hostdata = "debian01" but there is no 'OK' string :/.
What is wrong?!? How can I make it working?!?
Regards, mark