in reply to index into list returned by subroutine

Howdy!

my $val = (func())[1];

Put the function call (with parens, and without ampersand) in parens, and index that list...

yours,
Michael