go ahead... be a heretic | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi
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: 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 In reply to Sorting by dependencies by Anonymous Monk
|
|