note
BrowserUk
<blockquote><i>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 </i></blockquote>
<p>It sounds like the XY problem is that you've come to Perl from another language and haven't yet fully made the transition.
<P>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:)
<p>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:<code>
my @results = someFunc();
die unless @results == 3;
...
</code>
<div class="pmsig"><div class="pmsig-171588">
<hr />
<font size=1 >
<div>With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'</div>
<div>Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.</div>
<div>"Science is about questioning the status quo. Questioning authority".
[http://www.theregister.co.uk/2015/01/19/got_bugs_got_anger_just_get_them_out_says_linus_torvalds/|I'm with torvalds on this]
</div>
<div>In the absence of evidence, opinion is indistinguishable from prejudice. [http://vimeo.com/110554082|Agile (and TDD) debunked]
</div>
</font>
</div></div>
1115903
1116016