Syntactic Confectionery Delight | |
PerlMonks |
Re: problem in printing the result in the out put fileby marto (Cardinal) |
on Feb 28, 2017 at 16:35 UTC ( [id://1183163]=note: print w/replies, xml ) | Need Help?? |
Are you sure this is your code? $in_file2 isn't defined anywhere. Add use strict; use warnings;, fix the warnings given. Do you really have an and open(OUT, ">>port.txt"); for my $host = ....? You may also want to be careful with the scope of $ip, e.g.
Update: fixed code tag typo, thanks Eily.
In Section
Seekers of Perl Wisdom
|
|