in reply to Extract json data

The last element of an array can be accessed using the index -1, so you'd need
my $Getinfo = $Msg->{events}[-1]{response}{response_code};

Replies are listed 'Best First'.
Re^2: Extract json data
by frank1 (Monk) on Dec 23, 2024 at 19:29 UTC

    thank you