You can do either of the following:
1. Define your function to be a subroutine. If you use a subroutine, you can return multiple arguments.
2. Define your function to return a list. You can then access individual items in the list.
Using a subroutine is more efficient and doesn't have any learning curve. However, many programmers enjoy using lists to pack a bunch of related items into a single symbol.