Thanks for your words I will take care I will follow norms in future Your solution is fine but I have a issue here My sever side java expects output printed at single go its like parse and remove invalid lines store valid lines and print it once.
Sorry for being desperate.I will follow the norms in future
Re^6: neglect warnings in open 3 HANDLE_OUT
Replies are listed 'Best First'.
Again, I do not know what you mean by "at single go". Assuming that a command line invocation of your Perl script outputs what you expect, you should probably be trying to figure out why your Java is misbehaving, and that's not a Perl question.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.