http://qs321.pair.com?node_id=1116048


in reply to Re^2: Checking number of values returned
in thread Checking number of values returned

Well now you make me think about it, I suppose that I do habitually assign my functions to individual scalars. Perhaps this is the XY problem referred to earlier

It sounds like the XY problem is that you've come to Perl from another language and haven't yet fully made the transition.

I have the reverse problem. Every time I use C; I find my self wishing I could return multiple -- and variable numbers of -- values from functions:)

And the funny thing is that if you always assigned your results to an array, it would be much easier to check the number of returned values:

my @results = someFunc(); die unless @results == 3; ...

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked