You have to make a list from the result which you then can index, you can't index the call (or the call's parameter list). Try:
say+(givelist())[1];The + after say is there just to disambiguate the list-parens from function-call-parens.
In reply to Re: Pick a single item from a sub's return list
by shmem
in thread [Solved] Pick a single item from a sub's return list
by davies
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |