in reply to Text file Update problem!

I think you want to print conditionally. The trinary op is helpful:

print OUT $host, " "x(40-length($host)), "-> ", $xronos, (defined $game ? " -> $game" : ''), "\n";
That handles both cases.

After Compline,
Zaxo

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.