On Thu, Jul 7, 2011 at 10:39 AM, Jan Gehring <jan.gehring@xxxxxxxxx> wrote: > Hi Franky, > > On Thu, Jul 7, 2011 at 10:27 AM, Franky Van Liedekerke > <liedekef@xxxxxxxxxx> wrote: > >> for now the task description is above the task (if needed/wanted), but >> I believe it's more logical to put it as part of the task itself: >> >> task "test", group => ..., sub { >> desc(ription) => "this is the task description"; >> } > > The problem with this is, that (afaik) i would need a filter module to > get the description of a task. Because everything inside the sub { ... > } block gets only executed when a task is called. And i try to avoid > using filter modules. > > Perhaps i can use B::Deparse and the coderef2text method to get the > description without executing the sub... hm, have to try it :) > Well, it's not a blocking thing of course :-) Franky