Meghna has asked for the wisdom of the Perl Monks concerning the following question:
I am writing the output of a perl code into a file "output.csv". But "Nul" gets written in the first line of output (2 times). The code that i have used for writing in the file is:
print OUT "\n$input[0]| $freemac | $ip_req | $freeclient_ip[1]";I have tried chomp() too, but nothing is happening. Please help
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unwanted character in output file
by hippo (Archbishop) on Mar 28, 2018 at 10:43 UTC | |
|
Re: Unwanted character in output file
by AnomalousMonk (Archbishop) on Mar 28, 2018 at 15:28 UTC |