in reply to Split this string

to format the string the same way in maybe less lines.

No, the format is adequately poor, ie it is inadequate

Get a better format, something like JSON

Replies are listed 'Best First'.
Re^2: Split this string
by jellisii2 (Hermit) on Oct 12, 2011 at 12:29 UTC

    You must be an engineer: Your answer is completely valid but not useful to the question at hand, as it completely ignores that the OP may be stuck with the format that's been presented. Perhaps asking if the format is predefined or if this is something being developed would be a good place to start.

    Now, if the OP would kindly answer the "Is this something you're stuck with?" question, perhaps we can start helping.

      I am stuck with how the string is and what I ment by "to format the string the same way in maybe less lines." was less lines of perl code. Like optimizing split to do it all or a single cleverly crafted regular-expression.

      You must be an engineer...

      You're not a very good carnie. If the OP is stuck, OP will either explain so, or simply ignore my response