in reply to Re^4: Complex structures and function "map"
in thread Complex structures and function "map"

Sorry, I hadn't noticed you had replied.

I would like to achieve a structure "@ array" whose elements were other arrays. As I was reading this afternoon, this is achieved by references, that being scalars, can be elements of an array.

Correct.

So ... żI can by "map" to get from the output of the "fileparse" (a list of three scalar), an @array structure ($scalar1, $scalar2, ... $scalarn) where $scalarn is a reference to the list ($name, $path, $suffix)?

Close.

One can't create a reference to a list. You'll need to store $name, $path, $suffix in an array, and return a reference to that array. The three snippets I posted show ways of doing that.

So map will end up returning a list of references to arrays. Like subs, it cannot return an array, but you can store the list in an array.

I feel that I did not explained correctly.

Your post did not change my understanding of the question.