i changed and not getting error anymore but the list is still not sorted.
my $json = JSON::XS->new;
$json->get_canonical;
$return_json_text = $json->encode ($tmp_hash); <---no
error, but does not produce sorted output
the key is a datetime field e.g.: 2012-
I tried below but getting err:
my $json = JSON::XS->new;
$json->get_canonical;
$return_json_text = $json->encode $tmp_hash;
Scalar found where operator expected atscript.pl line 80, near "->encode
$tmp_hash"
???
- Original Message -
From: Rajeev Prasad
To: perl list
C
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
On 5 February 2012 03:29, Rajeev Prasad wrote:
>
>
> Author says:
>
> Adding and removing rows
> To create a new record in the database, you can use the create method. It
> returns an instance of My::Schema::Result::Album that can be used to access
> the data in the new record:
>
> my $new_album