develooper Front page | perl.perl5.porters | Postings from April 2022

Define behavior of sort in scalar context.

Thread Next
Ovid via perl5-porters
April 3, 2022 21:21
Define behavior of sort in scalar context.
Message ID:
In the latest perlfunc.pod for `sort`:
    In list context, this sorts the LIST and returns the sorted list value.    In scalar context, the behaviour of L<C<sort>|/sort SUBNAME LIST> is    undefined.
This has been an open issue for almost a decade: The conversation went on for a while, Yves produced a patch, the patch couldn't be applied because 5.18 was going to be released, and then there were a bunch more comments. It would be nice if behavior which can be defined actually gets defined.
Best,Ovid-- IT consulting, training, specializing in Perl, databases, and agile development 
Buy my book! -
Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About