Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^4: neglect warnings in open 3 HANDLE_OUT

by sandeepda (Novice)
on May 14, 2013 at 14:31 UTC ( #1033484=note: print w/ replies, xml ) Need Help??


in reply to Re^3: neglect warnings in open 3 HANDLE_OUT
in thread neglect warnings in open 3 HANDLE_OUT

1)First thing I cannot disable from java I can disable first 2 lines but it still printing 3rd line. 2)I am using backtick I took me a day to understand backtick will actually execute a command.I have to handle this in perl.I know its hack but no other way too


Comment on Re^4: neglect warnings in open 3 HANDLE_OUT
Re^5: neglect warnings in open 3 HANDLE_OUT
by kennethk (Monsignor) on May 14, 2013 at 14:43 UTC

    1. 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.
    2. 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?
    3. 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.

      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

        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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1033484]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2014-09-24 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (245 votes), past polls