When a Perl function returns an array is it possible to subscript the returned array?
my @tkeys = keys(%$someHashRef);
my $a0 = $tkeys[0];
# following not allowed by Perl
my $b0 = keys(%$someHashRef)[0];
Is there any way to extract an array element as a scalar from a function returning an array without using an intermediate array variable?