Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Delemeter Selection

by Polyglot (Monk)
on May 19, 2009 at 04:06 UTC ( #764821=note: print w/ replies, xml ) Need Help??


in reply to Delimiter Selection

Yes. You need to select a delimiter that will not be confused with the data it is delimiting.

In your case, you probably have white space in the log file (tabs or spaces). If that is not sufficient to delimit your log, and if you need to add something, you need to choose a delimiter that will not be in your file except as your delimiter. So, if you have dollar signs in the file, do not use that as the delimiter. If you have pipes in the file, choose something else for the delimiter.

After that, you can always escape a special character and use it as a delimiter if necessary.

Common delimiters are tab , space | and #. But other characters can work well also.

Blessings,

~Polyglot~


Comment on Re: Delemeter Selection

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2014-12-26 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (168 votes), past polls