OK, I've tried to look this up myself, but it would take me several hours to figure out what you could write in a few minutes.
There are 108 rows in $json_aoa, with timestamps from
$json_aoa->[0][1]to
$json_aoa->[108][1]How do I modify the following code
for my $ar_jentry (@$json_aoa) { # handle each decoded JSON entry printf $fh_data2 "%s\t%s\t%s\t%s\t%s\t%s\t%s\n", @$ar_jentry; }
so that it only prints values corresponding to the last 10 timestamps, in reverse order (latest to earliest)?
The other columns in the array are urlkey, timestamp, original, mimetype, statuscode, digest, and length.
How do I specify an arbitrary subset of these to include in the print out?
Thanks.
In reply to Re^6: reading a JSON object
by anautismobserver
in thread reading a JSON object
by anautismobserver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |