The {} isn't needed here
print {$out} "$ip\n" if defined $ip;
You can write print $out "$ip\n";
In reply to Re^2: Writing a new file in Perl
by Anonymous Monk
in thread Writing a new file in Perl
by maheshkumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |