Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: String to Perl data structureby chromatic (Archbishop) |
on Jul 13, 2007 at 06:12 UTC ( [id://626380]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|