Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Check multiple lines exist in a record

by sundialsvc4 (Abbot)
on Mar 26, 2018 at 21:33 UTC ( #1211792=note: print w/replies, xml ) Need Help??


in reply to Re^2: Check multiple lines exist in a record
in thread Check multiple lines exist in a record

When I said that my <code> example was extemporaneous, that is precisely what I meant:   “do not copy-and-paste this snippet into your home directory and expect it to compile.”   I have only a very limited amount of time to devote to responding to this forum, and so I often speak in generalizations that I expect my colleagues to understand.

I personally do not ascribe to the notion that any web-site should undertake to be “a code-writing service,” although on this point I might differ from that of other Monks here.   The essential point of my reply, and which I hope will indeed prove useful to the OP, is that “this use-case is not exactly new.”

Moving our attention, now, away from the syntax errors and on to the essential point . . .

This is exactly the sort of use case that The Larry™ (ommm ...) was faced with, all these years ago, when he first looked at the awk tool and found it wanting.   I will reserve judgment as to why this approach was not offered first, since its very obvious advantages it that it makes minimal prior assumptions about the structure of the input file.   (As you plainly see, it classifies the lines first, and sorts-them-out later.)   My point is not to judge anything or anyone else, but simply to point out that this approach is both valid, and old.

  • Comment on Re^3: Check multiple lines exist in a record

Replies are listed 'Best First'.
Re^4: Check multiple lines exist in a record
by johngg (Canon) on Mar 26, 2018 at 21:41 UTC
    I have only a very limited amount of time to devote to responding to this forum, and so I often speak in generalizations that I expect my colleagues to understand

    Hilarious!!

    Cheers,

    JohnGG

      A reply falls below the community's threshold of quality. You may see it by logging in.
Re^4: Check multiple lines exist in a record
by stonecolddevin (Parson) on Mar 30, 2018 at 16:04 UTC

    I have only a very limited amount of time to devote to responding to this forum, and so I often speak in generalizations that I expect my colleagues to understand.

    Colleagues would assume we are peers, which would assume you are on the same level as the people around you commenting on your post. That is not the case.

    Three thousand years of beautiful tradition, from Moses to Sandy Koufax, you're god damn right I'm living in the fucking past

Re^4: Check multiple lines exist in a record
by Anonymous Monk on Mar 31, 2018 at 17:37 UTC
    I have only a very limited amount of time to devote to responding to this forum

    May I respectfully suggest, yet again, that you spend more of that precious time checking your posts for accuracy and efficacy and less of that time on formatting frippery?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2019-10-22 05:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?