Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: Problems with sortingby Tanktalus (Canon) |
on Feb 22, 2005 at 00:45 UTC ( [id://433213]=note: print w/replies, xml ) | Need Help?? |
Thank you - that looks extremely promising. I really, really like that it uses a call-back to get the dependancies rather than asking for a complete list of dependancies up front. Since S::T has to loop through everything anyway, why loop through it in the calling code, too, when a callback will implicitly perform the loop? It does seem to perform the sort in the reverse order of what I wanted, but thankfully perl makes that pretty darned trivial. For posterity, my example has changed to: And the result is: At this point, this (simple) example is working. Which gives me reasonable confidence since I did manage to create a non-working example in the first place. Again, thanks! The only issue is that the module drags in too much - too bad it wasn't separated out into its own distribution. Oh well, can't win 'em all!
In Section
Seekers of Perl Wisdom
|
|