in reply to list returned from function

You're nearly there...
$elem = (myFunc())[5];
will do it