This is foo argh =========== Should be titled foo This is bar argh ----------- Should be titled bar this is baz argh

Should be titled baz

ignore this baz title

This is blag =head1 NAME argh =head1 TEXT Should be titled blag. This is gab
argh =========== Should be titled gab This is not gab =============== That heading should be ignored

This is boo Should be titled boo This should not appear ----------- Should be titled floo

nope

${realfoo}

nope

${realbar}

nope

${realbaz}

nope

${realblag}

nope

${realgab}

nope

${realboo}

nope

${realfloo}
The winners are: - $[realfoo.title] - $[realbar.title] - $[realbaz.title] - $[realblag.title] - $[realgab.title] - $[realboo.title] - $[realfloo.title] Title: $[this.title] // ${foo} Title: $[this.title] // ${bar} Title: $[this.title] // ${baz} Title: $[this.title] // ${blag} Title: $[this.title] // ${gab} Title: $[this.title] // ${boo} Title: $[this.title] // ${floo}