Hi brianjb,
I know your question has been probably answered :).
However, if I may draw your attention to some stuff in your code:
would fail to do what you intended, in case your file doesn't exists.open FILE, "<hostname_check.txt" || die $!;
oropen ( FILE, "<hostname_check.txt" ) || die $!;
open FILE, "<hostname_check.txt" or die $!;
open my $fh, '<',"hostname_check.txt" or die $!;
In reply to Re: Need help with script with a while loop reading file
by 2teez
in thread Need help with script with a while loop reading file
by brianjb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |