Can your PHP application emit JSON or YAML? If so, that's the easiest approach. Otherwise, you need to write some sort of parser for whatever data structure that string represents in Perl. Data::Dumper produces Perl code that, when evaled, produces a Perl data structure. Your example is not Perl code.
In reply to Re: String to Perl data structure
by chromatic
in thread String to PERL data structure
by perl_lover
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |