in reply to Re^6: reading a JSON object
in thread reading a JSON object
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".
🦛
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: reading a JSON object
by anautismobserver (Sexton) on May 11, 2022 at 19:45 UTC | |
by AnomalousMonk (Archbishop) on May 11, 2022 at 22:53 UTC |