I have a list of jobs which need to be executed according to some dependencies.
for instance @jobs =qw(A B C D E) and
should lead to a possible result:A after D E after B B after C
qw(C B E D A)
How can I solve this in Perl? Unfortunately I cant assign a ranking value for sorting since the job list is very volatile.
And using sort {} didn't help with incomplete dependencies.
Thanks
Axel
In reply to Sorting by dependencies by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |