in reply to Re: Stable sorting in Perl
in thread Stable sorting in Perl

I saw a reference to that pragma somewhere on the internet however I don't get that when I do "perldoc -f sort". If I try use sort 'stable'; (et-al) I get: "Can't locate sort.pm ..." etc.
Do I have to have a seperate sort.pm from cpan? Or (and maybe this is most likely) is this not available in perl v5.6.0?
But thanks for the reply. ++

Replies are listed 'Best First'.
Re: Re: Re: Stable sorting in Perl
by liz (Monsignor) on Aug 27, 2003 at 19:50 UTC
    There is a subtle difference between:
    perldoc sort
    
    and
    perldoc -f sort
    
    The former gives you the documentation of the sort pragma, whereas the latter gives you the documentation of the sort function. But indeed, you appear to need at least 5.8.0 for the sort pragma.

    Liz

      Ahhh... When I do perldoc sort I get "No documentation for sort..." So only perldoc -f sort gives me anything. I think you're right, I must need 5.8.0 or better for the sort pragma. Thanks!