Your problem is here:
while (<FILEHANDLE>) { my $ServerName = <FILEHANDLE>;
The while(<FILEHANDLE>) reads a value and puts it in $_. Then the next line reads another value and puts it in $ServerName. Try this instead:
while (my $ServerName=<FILEHANDLE>) {
In reply to Re: Substring problem
by bv
in thread Substring problem
by keith_kauai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |