Perl-Sensitive Sunglasses | |
PerlMonks |
Re^13: partial matching of lines in perl (updated)by AnomalousMonk (Archbishop) |
on Jun 16, 2020 at 04:59 UTC ( [id://11118122]=note: print w/replies, xml ) | Need Help?? |
Update: Ok, you've just changed nodes Re^11: partial matching of lines in perl and Re^12: partial matching of lines in perl to remove matter to which I've just spent a fair amount of time responding. Please don't do that. It's ok to make changes in your posts, but such changes should never be made in such a way as to destroy context. Please see How do I change/delete my post? for site etiquette and protocol regarding changes. First, let's talk about formatting PerlMonks posts.
... help me out and write an executable code You already have executable code here! I simply took this code and rewrote it slightly to use file names I thought were more appropriate and a directory local to my development tree, and to use the proper syntax for print-ing to a filehandle, and posted it here, along with the contents of the two input files and the output of the code. This code produced output and correct output insofar as I understood your requirements.
In response to this post, I took the data posted therein (insofar as I could understand its structure) and put it into files goodfile.txt and badfile.txt as indicated in the post. I then changed my version of your code posted here to use the different file names and data and ran it. The output I saw was the single line Please carefully review the various steps you have taken to exercise the code you have written and that has been posted in this thread by others. I suspect that, in the midst of a deluge of details, you have overlooked critical steps and are now wandering in desperate confusion. Don't worry; we've all been there. Take a step (or two) back, relax, take a deep breath, enjoy a cookie, center your thoughts, and when your mind has cleared, begin again. Run code that has been posted here with its accompanying data and see if you get the claimed results. If you do, ask how this code/data differs from that you are using. If this approach yields no success, come back and we'll try another tack. Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|