in reply to Re^2: How to input variable value from a file?
in thread How to input variable value from a file?

You just need to initialize the variable.

Don't forget use strict; and use warnings at the top of every script.

use strict; use warnings; my $serverfile = 'foo.bar';