Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^5: neglect warnings in open 3 HANDLE_OUT

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


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

  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.


Comment on Re^5: neglect warnings in open 3 HANDLE_OUT
Download Code
Re^6: neglect warnings in open 3 HANDLE_OUT
by sandeepda (Novice) on May 14, 2013 at 14:49 UTC
    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.

        Single go let me try to put it in other way around
        <Composites> i=0 compositedetail=swlib:soaprov/soacomposite=eis/FileAdapter#eis/Fil +eAdapter# swlib:soaprov/soacomposite=eis/FileAdapter#eis/FileAdapter# starts + with swlib </Composites>
        The solution which you gave will first print <Composites> then in next loop it prints i=0 ....etc .I want to save it to a variable $myVariable and print outside forloop ?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2014-08-02 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (55 votes), past polls