- This is clearly supposed to be a response to Re^5: neglect warnings in open 3 HANDLE_OUT. Please respond in the appropriate thread, so other people reading this thread can follow. Again, this is basic courtesy.
- I gave you a solution in Re^3: neglect warnings in open 3 HANDLE_OUT. Modified for a backtick invocation, it might be
my $result = `$command`;
my @lines = split /\n/, $result;
for(@lines) {
next if /<BEA-\d+>/;
next if !/\S/;
print "$_\n";
}
How does this not meet your spec?
- If you are new, then you will likely have many questions in the future. Currying good favor by demonstrating effort and by being polite, patient and humble is probably more important in the long run than any particular solution you might garner.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
| [reply] [d/l] |
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
| [reply] |
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.
| [reply] |