in reply to Is this a job for Parse::RecDescent?

This is somewhat speculative and is based on "I'm not wedded to this syntax" and without knowing exactly what's in some value, stuff and so on.

Adding a few commas in strategic places (e.g. changing global { to global => {) will result in a Perl hash structure. You could read this and access your options like this:

$opt_hash->{table}{columns}{col1}{col_option2}

-- Ken

Replies are listed 'Best First'.
Re^2: Is this a job for Parse::RecDescent?
by Anonymous Monk on Nov 30, 2010 at 08:08 UTC
    Thanks everyone for the great suggestions. I will look at perhaps using JSON or XML instead - not sure why that never occurred to me! Ken, simply making it as a hash is another interesting idea - I'll have to ultimately see what's easiest for users. Thanks so much all!