in reply to index into list returned by subroutine
my $val = (func())[1]; [download]
Put the function call (with parens, and without ampersand) in parens, and index that list...