I have deference array as given below -
"message": [
{
"abc": "",
"xyz": "",
"pqr": ""
},
{
"abc": "",
"xyz": "",
"pqr": ""
},
{
"abc": "",
"xyz": "",
"pqr": ""
},
{
"abc": "",
"xyz": "",
"pqr": ""
},
{
"abc": "",
"xyz": "",
"pqr": ""
}
]
To find its length I tried following stuff but in each case I got answer as '1' instead of '5'.
1. say scalar @message;
2. my $attempt_length = @message;
It might be a very basic question but I am stuck here very badly. Please, help me in finding its length in Perl if anyone can. Thanks in advance.