pmruk has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'm passing this JS object to my script:
[{feedId:6161,feedType:'forum'},{feedId:1469,feedType:'category'}]I then need to convert it to the following format in Perl:
my @feedData = ({ 'feedId' => 6161, 'feedType' => 'forum' },{ 'feedId' => 1469, 'feedType' => 'category' });
Could someone kindly give me some pointers??
Thank you!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Convert JS array of objects into Perl array of Hashes
by Fletch (Bishop) on Dec 08, 2009 at 17:56 UTC | |
Re: Convert JS array of objects into Perl array of Hashes
by codeacrobat (Chaplain) on Dec 08, 2009 at 21:38 UTC | |
by afoken (Chancellor) on Dec 09, 2009 at 01:25 UTC | |
Re: Convert JS array of objects into Perl array of Hashes
by AnomalousMonk (Archbishop) on Dec 08, 2009 at 23:17 UTC |