in reply to Need help with script with a while loop reading file
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 $!;
|
|---|