Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: iterating through json decode

by poj (Abbot)
on Feb 08, 2018 at 14:33 UTC ( [id://1208715]=note: print w/replies, xml ) Need Help??


in reply to iterating through json decode

where i'm going wrong?

Add use strict; use warnings;

#foreach my $item (keys %{$_[0]}){ # repl_mongo($key,$_[1]-1 ); foreach my $key (keys %{$_[0]}){ repl_mongo($_[0]->{$key},$_[1]-1 ); }

Also see index

#if (index("ISODate",$_[0]) >= 0){ if (index($_[0],"ISODate") >= 0){

Note to use Time::Moment->from_string($string); The string must consist of a complete date representation and time of day followed by a zone designator.

poj

Replies are listed 'Best First'.
Re^2: iterating through json decode
by Bobert1234 (Novice) on Feb 08, 2018 at 17:43 UTC
    Thank you very much poj ! that was super helpful.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-19 11:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found