need guidance on encode JSON and sorting

2012-02-05 Thread Rajeev Prasad
in the script this is all i am using JSON as: ... use JSON::XS; ... $return_json_text = encode_json $tmp_hash; this variable ($return_json_text) is then used to display values. I need this to be orderd, but not able to figure how to order the outcome??? I read about $enabled = $json->get_c

Re: need guidance on encode JSON and sorting

2012-02-05 Thread Rajeev Prasad
Prasad To: perl list Cc: Sent: Sunday, February 5, 2012 10:04 PM Subject: need guidance on encode JSON and sorting in the script this is all i am using JSON as: ... use JSON::XS; ... $return_json_text = encode_json $tmp_hash; this variable ($return_json_text) is then used to display valu

Re: need guidance on encode JSON and sorting

2012-02-05 Thread Rajeev Prasad
d e.g.: 2012-01-20 22:24:36   value is some text - Original Message - From: Rajeev Prasad To: perl list Cc: Sent: Sunday, February 5, 2012 10:20 PM Subject: Re: need guidance on encode JSON and sorting I tried below but getting err:     my $json = JSON::XS->new;     $json

Re: need guidance on encode JSON and sorting

2012-02-06 Thread Igor Dovgiy
ash; > > Scalar found where operator expected atscript.pl line 80, near "->encode > $tmp_hash" > > > ??? > > > > > - Original Message - > From: Rajeev Prasad > To: perl list > Cc: > Sent: Sunday, February 5, 2012 10:04 PM > S