Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^4: Help with parsing a file (updated)

by Odar (Novice)
on May 29, 2022 at 23:34 UTC ( #11144283=note: print w/replies, xml ) Need Help??

in reply to Re^3: Help with parsing a file (updated)
in thread Help with parsing a file

I can post part of the real data file but it will be 2-3 pages long. Could I ask what should I use to add this update to the question i.e. the 'code' or the 'readmore' tag so that it displays properly and follows PerlMonk's best practise?

  • Comment on Re^4: Help with parsing a file (updated)

Replies are listed 'Best First'.
Re^5: Help with parsing a file (updated)
by GrandFather (Saint) on May 30, 2022 at 04:15 UTC

    Note that you don't need to actually post much data. Strip it down to show the salient variations. Any text that isn't important for identifying records or data items or parameters can be omitted or abbreviated as appropriate. Background like how the original file is generated may be helpful to give us some idea of how much variation there may be in elements of the format. The smaller you can make the data and still be clear about the actual file format the easier it will be to figure out how to parse it.

    If the sample we have already is representative of the actual data (exact naming format aside) we don't need large lumps of additional data. It is important that anything related to record breaks is accurately represented though.

    Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
Re^5: Help with parsing a file (updated)
by LanX (Sage) on May 29, 2022 at 23:46 UTC
    Best reply to yourself IMHO.

    Updates to posts which had already so many replies are confusing.

    Explain why and use readmore and code

      here some more accurate input data ...
      <readmore> <code> DATA </code> </readmore>

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery


    ) i.e. your root node

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2022-09-30 13:04 GMT
Find Nodes?
    Voting Booth?
    I prefer my indexes to start at:

    Results (126 votes). Check out past polls.