in reply to RE: RE: RE: Re: scalar doesn't work values returned by a function?
in thread scalar doesn't work values returned by a function?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: scalar doesn't work values returned by a function?
by perlmonkey (Hermit) on May 11, 2000 at 11:08 UTC |