in reply to scalar doesn't work values returned by a function?
But then scalar should not be setting a scalar context, since its purpose is to get an array as argument.That's the part I don't understand you not understanding. The whole point of scalar is to create a scalar context. And sort has no scalar definition, so it's defined as undef for the moment.
-- Randal L. Schwartz, Perl hacker
|
|---|