in reply to Re^2: Can I get some rules help with PARSE::RECDESCENT
in thread Can I get some rules help with PARSE::RECDESCENT

You said this is your desired output:

$VAR1 = { { 'cvtype=\'problem\'' } { and } { problem_description match \'*\' } };

Your desired output makes no sense. It doesn't even compile.

syntax error at a.pl line 5, near "{" Can't find string terminator "'" anywhere before EOF at a.pl line 9.

Please fix.


I would like to boil this down into an array

Really? An array of what? Parsers normally produce trees.

Replies are listed 'Best First'.
Re^4: Can I get some rules help with PARSE::RECDESCENT
by DevM (Initiate) on Mar 13, 2018 at 14:27 UTC

    My apologies.

    My studies led me to believe that the presentation of a Tree in PERL is actually a Multi-dimensional array. Where the bottom of the tree is actually the furthest out array elements. Kind of turns a tree on it's side. If I am wrong that put's a whole new spin on what I am trying to do.

    Thank You

    DevM