http://www.perlmonks.org?node_id=1218473


in reply to Extract selected sections of POD

Have a look at rt://124867.