Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: neglect warnings in open 3 HANDLE_OUT

by kennethk (Monsignor)
on May 14, 2013 at 14:27 UTC ( #1033483=note: print w/ replies, xml ) Need Help??


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

perl is the program; Perl is the language.

Everyone was new once, but you should be aware that cross-posting is considered incredibly rude. Your Stack Overflow post is only 5 hours old, and does in fact have a proposed solution. Work with the person who already volunteered to help you; why doesn't their solution work for you?


#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.


Comment on Re^3: neglect warnings in open 3 HANDLE_OUT
Re^4: neglect warnings in open 3 HANDLE_OUT
by sandeepda (Novice) on May 14, 2013 at 14:31 UTC
    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

      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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2014-09-18 03:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (105 votes), past polls