http://www.perlmonks.org?node_id=1033479


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

The problem is I am new to perl I am trying myself and not getting solution hence have asked in some forums.
  • Comment on Re^2: neglect warnings in open 3 HANDLE_OUT

Replies are listed 'Best First'.
Re^3: neglect warnings in open 3 HANDLE_OUT
by kennethk (Abbot) on May 14, 2013 at 14:27 UTC
    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.

      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.