Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Converting some MapReduce PHP scripts to Perl

by fullermd (Curate)
on Aug 12, 2011 at 23:30 UTC ( #920103=note: print w/ replies, xml ) Need Help??


in reply to Re: Converting some MapReduce PHP scripts to Perl
in thread Converting some MapReduce PHP scripts to Perl

Presumably, that get_object_vars function exists elsewhere in the code

Actually, it's a standard PHP function. It turns an object into an (associative) array of its properties.

PHP's json_decode turns the map/hash/whatever into technically an object rather than an array. Little odd, though perhaps fitting the 'JS' part of 'JSON' in a way. In that case, the extra step is needed to get something you can refer to as an array. From the print_r() output, it looks like it may have actually turned it into an array since it only had numeric keys, but that's too deep in PHP's DWIM for me to suss out.


Comment on Re^2: Converting some MapReduce PHP scripts to Perl
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://920103]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (16)
As of 2014-07-31 14:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (249 votes), past polls