Mehrere Rückgabewerte einer Subroutine

Kommentieren Jul 19 2013 .txt, .json, .md

In diesem Tutorial wird erklärt wie man beliebig viele Rückgabewerte aus einer Subroutine zurück bekommt.

How do I return multiple variables from a subroutine?

The problem Often you’ll want to return more than one variable from a subroutine. You could do this by returning all the values in an array, or by accepting variable references as parameters and modifying those.

In Perl however, you can return multiple variables easily.