the last 10 timestamps, in reverse order (latest to earliest)
See the FAQ How do I sort an array by (anything)?
How do I specify an arbitrary subset of these to include in the print out?
I think you are asking how to extract an arbitrary list of fields from a larger array. In that case it is just:
use strict; use warnings; my @bigarray = qw/a b c d e f g h i j/; my @subset = @bigarray[2, 5, 7]; print "@subset\n";
Which means @subset will have just those three fields from @bigarray and the output will be "c f h".
🦛
In reply to Re^7: reading a JSON object
by hippo
in thread reading a JSON object
by anautismobserver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |