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

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

by Odar (Novice)
on May 29, 2022 at 23:34 UTC ( [id://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?

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 (Saint) 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

    update

    °) i.e. your root node

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-03-29 13:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found