Re: xsub apidoc ordering RFC



On Fri, 2004-02-20 at 05:36, Peter Haworth wrote:
  @$xsubs=sort { 
    for(my $at=$a->{symname}, my $bt=$b->{symname}){
      s/^.+:://;
      s/^new/\x00/;

      s/^(get|set)_(.*)/${2}_$1/ for $at,$bt;
      # Or replace with /\xff${2}_$1/ to sort all accessors at the end
    }

    $at cmp $bt;
  } @$xsubs;

good suggestion in fact it marc and your suggestions where implemented
and committed a few mins ago.

there was a scope problem in the above code, since the my's are in the
for at/bt don't exist when it comes time for cmp so '' cmp '' was
happening. at any rate something pretty similar to the above was
implemented. 

-rm




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]