Ahhh, this clarifies a lot. Most of the answers are in the documentation, it's just so hard to keep track of all of it...
But it still does not explain why scalar(sort @a) returns undef. If sort @a returns a list, and a list in scalar context gets you the last value... or does it only apply to named lists?
Thank you all for your responses. This thread has been very enlightening for me.
--ZZamboni
In reply to Re: scalar doesn't work values returned by a function?
by ZZamboni
in thread scalar doesn't work values returned by a function?
by ZZamboni
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |