in reply to Re: [Golfing] Uncommenting a block
in thread [Golfing] Uncommenting a block

> So you want to embed TODO headlines in perl code, than use the global TODO list from agenda views to see what needs to be done further in your code, right?

yes kind of, many features of org-mode are very intuitive.

For the records, the best solution I found so far is

print; =org * TODO whatever ... ** =cut print;
this is legal Perl code (but not legal POD because of missing blank lines and unknown directive)

or

sub ORG ($) { } print; ORG <<''; * TODO whatever ... ** print;

Cheers Rolf

UPDATE: repaired code, haven't taught my Wiki-expander to igore code tags yet...

Replies are listed 'Best First'.
Re^3: [Golfing] Uncommenting a block
by stefbv (Priest) on Apr 16, 2010 at 15:14 UTC

    How about?:

    print; =for org * TODO whatever ... ** =cut print;

    Stefan

    Update: added spaces before and after POD.

    Update2: s/spaces/empty lines/