I have a variable that looks like this:
do {
my $a = {
computers => [
{
report_date_epoch => 1591107993595,
serial_number => "C02YK1TAFVCF",
username => "fake1\@example.com",
},
{
report_date_epoch => 1626877069476,
serial_number => "C03XF8AWJG5H",
username => "fake2\@example.com",
},
...
And I'd like to sort it by the epoch number into a new variable without the computers array.
computersarray." -- i don't understand? Can you show your expected output?$aand$b; they are somewhat special and using them outsidesort's compare function can cause issues.