in reply to Substring problem
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>) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Substring problem
by keith_kauai (Initiate) on Aug 26, 2009 at 20:26 UTC | |
by bv (Friar) on Aug 26, 2009 at 20:41 UTC |